clear_cloexec

Function clear_cloexec 

Source
pub fn clear_cloexec(fd: RawFd) -> Result<()>
Expand description

Clear the close-on-exec flag so the fd is inherited by children.

Call this on the guest’s doorbell fd before spawning.

shm[impl shm.spawn.fd-inheritance]