pub fn pidfd_open(pid: Pid, flags: PidfdFlags) -> Result<OwnedFd, Errno> ⓘ
dep_rustix
syscall(SYS_pidfd_open, pid, flags)—Creates a file descriptor for a process.
syscall(SYS_pidfd_open, pid, flags)