diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2021-06-04 10:14:52 -0400 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2021-06-04 10:14:52 -0400 |
commit | c94f102527763904e059791b110972e1b13075a3 (patch) | |
tree | abc7db7ef992440eea06a0fc85c90875cc10f61c /pullreqd.c | |
parent | 0376550cfb652d05fc432d3170a6afb39ff25251 (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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); +} |