recv_sideband: Bands #2 and #3 always go to stderr
[gitweb.git] / sigchain.c
index a18d505e56b2f80e3ecae00afdfa05f9b87dc119..1118b99e57d3308f333c56f487329a8fef75a7df 100644 (file)
@@ -41,3 +41,12 @@ int sigchain_pop(int sig)
        s->n--;
        return 0;
 }
+
+void sigchain_push_common(sigchain_fun f)
+{
+       sigchain_push(SIGINT, f);
+       sigchain_push(SIGHUP, f);
+       sigchain_push(SIGTERM, f);
+       sigchain_push(SIGQUIT, f);
+       sigchain_push(SIGPIPE, f);
+}