diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-05-21 18:15:10 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-05-21 18:15:10 +0000 |
| commit | f49742ebba769e5024f178428d6e7ad048f18e77 (patch) | |
| tree | e39c97768fb208bfbc4d818b9ad1231f2f4cd7d3 /server.c | |
| parent | readme: 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
