1
Fork 0

Stabilize parent_id()

Fixes #46104
This commit is contained in:
Thayne McCombs 2018-04-03 19:47:37 -06:00
parent c75d5e242f
commit 97ac479066

View file

@ -193,7 +193,7 @@ impl IntoRawFd for process::ChildStderr {
} }
/// Returns the OS-assigned process identifier associated with this process's parent. /// Returns the OS-assigned process identifier associated with this process's parent.
#[unstable(feature = "unix_ppid", issue = "46104")] #[stable(feature = "unix_ppid", since = "1.27.0")]
pub fn parent_id() -> u32 { pub fn parent_id() -> u32 {
::sys::os::getppid() ::sys::os::getppid()
} }