checkout --track: make up a sensible branch name if '-b' was omitted
[gitweb.git] / lockfile.c
index cfc7335347c4875537d1c45c909921908f3d4f10..4023797b00fe21ecbabe3407ef8a12fca0690607 100644 (file)
@@ -135,6 +135,9 @@ static int lock_file(struct lock_file *lk, const char *path)
        if (0 <= lk->fd) {
                if (!lock_file_list) {
                        signal(SIGINT, remove_lock_file_on_signal);
+                       signal(SIGHUP, remove_lock_file_on_signal);
+                       signal(SIGTERM, remove_lock_file_on_signal);
+                       signal(SIGQUIT, remove_lock_file_on_signal);
                        atexit(remove_lock_file);
                }
                lk->owner = getpid();