cloud-hypervisor/vmm
Alyssa Ross 505f4dfa53 vmm: close all unused fds in sigwinch listener
The PTY main file descriptor had to be introduced as a parameter to
start_sigwinch_listener, so that it could be closed in the child.
Really the SIGWINCH listener process should not have any file
descriptors open, except for the ones it needs to function, so let's
make it more robust by having it close all other file descriptors.

For recent kernels, we can do this very conveniently with
close_range(2), but for older kernels, we have to fall back to closing
open file descriptors one at a time.

Signed-off-by: Alyssa Ross <hi@alyssa.is>
2023-04-05 11:23:06 +01:00
..
src vmm: close all unused fds in sigwinch listener 2023-04-05 11:23:06 +01:00
Cargo.toml build: Bump serde_json from 1.0.93 to 1.0.95 2023-04-04 00:41:41 +00:00