summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pullreqd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/pullreqd.c b/pullreqd.c
index 13ec9b8..e783aa6 100644
--- a/pullreqd.c
+++ b/pullreqd.c
@@ -25,3 +25,7 @@ pid_t fork_proc() {
void child_handler(int sig_num) {
signal(SIGCHLD, child_handler);
}
+
+void hangup_handler(int sig_num) {
+ signal(SIGHUP, hangup_handler);
+}