Hadlock spawns children without taking care of SIGCHLD, which leads to
zombies. We can either wait()/waitpid() or let the kernel know that
we don't care by ignoring SIGCHLD.
The solution uses nix::sys::signal unconditionally, since Hadlock is
an X11 wm, and it's reasonable to assume a suitable nix::sys
environment.
Hadlock spawns children without taking care of
SIGCHLD
, which leads to zombies. We can eitherwait()
/waitpid()
or let the kernel know that we don't care by ignoringSIGCHLD
.The solution uses
nix::sys::signal
unconditionally, since Hadlock is an X11 wm, and it's reasonable to assume a suitablenix::sys
environment.