pager: do wait_for_pager on signal death
[gitweb.git] / http-push.c
index dec395deed0778b707b62e86a35086f6e6b73a72..7d5c23edc4b864958671a26bde64ce21e54924bc 100644 (file)
@@ -2262,10 +2262,7 @@ int main(int argc, char **argv)
                goto cleanup;
        }
 
-       sigchain_push(SIGINT, remove_locks_on_signal);
-       sigchain_push(SIGHUP, remove_locks_on_signal);
-       sigchain_push(SIGQUIT, remove_locks_on_signal);
-       sigchain_push(SIGTERM, remove_locks_on_signal);
+       sigchain_push_common(remove_locks_on_signal);
 
        /* Check whether the remote has server info files */
        remote->can_update_info_refs = 0;