mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-01 07:15:32 -04:00
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.
This commit is contained in:
parent
5600cc68c0
commit
f49742ebba
4 changed files with 161 additions and 0 deletions
|
|
@ -114,6 +114,7 @@ executable(
|
|||
'misc.c', 'misc.h',
|
||||
'osc.c', 'osc.h',
|
||||
'quirks.c', 'quirks.h',
|
||||
'reaper.c', 'reaper.h',
|
||||
'render.c', 'render.h',
|
||||
'search.c', 'search.h',
|
||||
'selection.c', 'selection.h',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue