aboutsummaryrefslogtreecommitdiff
path: root/server.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-05-21 18:15:10 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-05-21 18:15:10 +0000
commitf49742ebba769e5024f178428d6e7ad048f18e77 (patch)
treee39c97768fb208bfbc4d818b9ad1231f2f4cd7d3 /server.c
parentreadme: mention that gcc produces a much faster binary than clang (diff)
reaper: new module, uses a signalfd to wait() on child processes
Use a signalfd to listen for SIGCHLD signals. When we receive a SIGCHLD over the signalfd, reap all dead children by looping over all registered child PIDs and call waitpid(WNOHANG) on them.
Diffstat (limited to 'server.c')
0 files changed, 0 insertions, 0 deletions