Skip to main content

pidfd_open

Function pidfd_open 

Source
pub(crate) fn pidfd_open(pid: Pid) -> Result<OwnedFd>
Expand description

Open a pidfd for the process, which also works for one that already exited but was not reaped yet. The descriptor is close-on-exec.