| Commit message (Collapse) | Author | Age | Lines | |
|---|---|---|---|---|
| * | reaper: add optional callback | Daniel Eklöf | 2020-12-26 | -18/+34 |
| | | | | | | | | | | When calling ‘reaper_add()’, the caller can provide a callback. If non-NULL, the reaper will call the callback to handle the actual reaping. If the callback is NULL, or if it returns false, the reaper reaps the child process. | |||
| * | Fix some spelling mistakes | Craig Barnes | 2020-08-15 | -1/+1 |
| | | ||||
| * | Handle allocation failures explicitly in *_init() functions | Craig Barnes | 2020-08-09 | -2/+8 |
| | | ||||
| * | Convert most dynamic allocations to use functions from xmalloc.h | Craig Barnes | 2020-08-08 | -1/+2 |
| | | ||||
| * | reaper: disable debug logging | Daniel Eklöf | 2020-05-21 | -1/+1 |
| | | ||||
| * | reaper: new module, uses a signalfd to wait() on child processes | Daniel Eklöf | 2020-05-21 | -0/+142 |
| 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. | ||||
