Skip to content

Commit

Permalink
Auto merge of #49574 - tmccombs:stabilize-getpid, r=sfackler
Browse files Browse the repository at this point in the history
Stabilize `std::process::id()`

Fixes #44971
  • Loading branch information
bors committed Apr 2, 2018
2 parents acad4cc + d4f5e89 commit 73f0871
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/libstd/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit 73f0871

Please sign in to comment.