Rollup merge of #49637 - tmccombs:parent-id-stabilize, r=sfackler

Stabilize parent_id()

Fixes #46104
This commit is contained in:
kennytm 2018-04-04 11:07:30 +02:00
commit a4f744d84e
No known key found for this signature in database
GPG Key ID: FEF6C8051D0E013C

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()
} }