From 0376550cfb652d05fc432d3170a6afb39ff25251 Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Fri, 4 Jun 2021 10:13:28 -0400 Subject: Added `child_handler()`. Which is the handler for SIGCHLD. Currently, it's a stub. --- pullreqd.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pullreqd.c') 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); +} -- cgit v1.2.3-13-gbd6f