Function nix::sys::ptrace::seize
pub fn seize(pid: Pid, options: Options) -> Result<()>
The portability is definied by:
#[cfg(target_os = "linux")]
Documentation
Attach to a running process, as with ptrace(PTRACE_SEIZE, ...)
Attaches to the process specified in pid, making it a tracee of the calling process.