1
Fork 0

Stabilize std::process::id()

Fixes #44971
This commit is contained in:
Thayne McCombs 2018-04-01 21:40:56 -06:00
parent 06fa27d7c8
commit d4f5e89ee0

View file

@ -1420,14 +1420,13 @@ pub fn abort() -> ! {
/// Basic usage:
///
/// ```no_run
/// #![feature(getpid)]
/// use std::process;
///
/// println!("My pid is {}", process::id());
/// ```
///
///
#[unstable(feature = "getpid", issue = "44971", reason = "recently added")]
#[stable(feature = "getpid", since = "1.27.0")]
pub fn id() -> u32 {
::sys::os::getpid()
}