summaryrefslogtreecommitdiff
path: root/pullreqd.c
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2021-06-04 10:14:52 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2021-06-04 10:14:52 -0400
commitc94f102527763904e059791b110972e1b13075a3 (patch)
treeabc7db7ef992440eea06a0fc85c90875cc10f61c /pullreqd.c
parent0376550cfb652d05fc432d3170a6afb39ff25251 (diff)
Added `hangup_hander()`.
Which is the same as `child_handler()`, but for SIGHUP. And just like `child_handler()`, it's also currently a stub.
Diffstat (limited to 'pullreqd.c')
-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);
+}