mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 05:35:20 +00:00
09f3658999
When a guest running on a terminal reboots, the sigwinch_listener subprocess exits and a new one restarts. The parent never wait()s for children, so the old subprocess remains as a zombie. With further reboots, more and more zombies build up. As there are no other children for which we want the exit status, the easiest fix is to take advantage of the implicit reaping specified by POSIX when we set the disposition of SIGCHLD to SIG_IGN. For this to work, we also need to set the correct default exit signal of SIGCHLD when using clone3() CLONE_CLEAR_SIGHAND. Unlike the fallback fork() path, clone_args::default() initialises the exit signal to zero, which results in a child with non-standard reaping behaviour. Signed-off-by: Chris Webb <chris@arachsys.com> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |