pub(crate) fn pidfd_open(pid: Pid) -> Result<OwnedFd>
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.