W3cubDocs

/Rust

Function std::os::unix::process::parent_id

pub fn parent_id() -> u32
This is supported on Unix only.

Returns the OS-assigned process identifier associated with this process's parent.

© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/std/os/unix/process/fn.parent_id.html