summaryrefslogtreecommitdiff
path: root/pullreqd.c
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2021-06-04 10:13:28 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2021-06-04 10:13:28 -0400
commit0376550cfb652d05fc432d3170a6afb39ff25251 (patch)
tree503efeaa937f35bf2811eefbc18726ab44944046 /pullreqd.c
parent3c2d695e58a73f5d35a0dbc794b7d4b82a9841fe (diff)
Added `child_handler()`.
Which is the handler for SIGCHLD. Currently, it's 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 a690b3e..13ec9b8 100644
--- a/pullreqd.c
+++ b/pullreqd.c
@@ -21,3 +21,7 @@ pid_t fork_proc() {
}
return pid;
}
+
+void child_handler(int sig_num) {
+ signal(SIGCHLD, child_handler);
+}