Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup of 8 pull requests #25624

Merged
merged 19 commits into from
May 20, 2015
Merged

Rollup of 8 pull requests #25624

merged 19 commits into from
May 20, 2015

Conversation

alexcrichton and others added 17 commits May 16, 2015 11:13
This commits adds a method to the `std::process` module to get the process
identifier of the child as a `u32`. On Windows the underlying identifier is
already a `u32`, and on Unix the type is typically defined as `c_int` (`i32` for
almost all our supported platforms), but the actually pid is normally a small
positive number.

Eventually we may add functions to load information about a process based on its
identifier or the ability to terminate a process based on its identifier, but
for now this function should enable this sort of functionality to exist outside
the standard library.
This commits adds a method to the `std::process` module to get the process
identifier of the child as a `u32`. On Windows the underlying identifier is
already a `u32`, and on Unix the type is typically defined as `c_int` (`i32` for
almost all our supported platforms), but the actually pid is normally a small
positive number.

Eventually we may add functions to load information about a process based on its
identifier or the ability to terminate a process based on its identifier, but
for now this function should enable this sort of functionality to exist outside
the standard library.
…veklabnik

The paper from which this example was taken made the mistake of assuming that all five philosophers are men. This it is a hypothetical example—there are no actual philosophers eating 🍝—so there is no good reason to make this assumption. Since women make up about half of the human population, all things being equal, women should represent about half of the philosophers. However, because this mistake has stood since 1985, I have changed *all* of the pronouns to be female, to make up for lost time. If someone would like to revert this patch or switch to neutral pronouns after 30 years, feel free to set your alarm clock for 2045.

r? @steveklabnik, since this is a documentation change and was created after reading http://words.steveklabnik.com/ouroboros, where I noticed this mistake.
Padding and alignment are often not implemented by types and can cause confusion in the user.  Per discussion with @alexcrichton, here is my PR.

/cc time-rs/time#98
…teveklabnik

"Truth passes, success `panic!`s" seems to be a typo. The closest fix would be something like "Success passes, failure `panic!`s" but to me a "comparison failure" suggests that we couldn't compare the two values at all, not that we could successfully compare them and that the result was non-equality. So I opted to rewrite the paragraph a bit. If there's a better alternative please let me know.

r? @steveklabnik
@rust-highfive
Copy link
Collaborator

r? @nikomatsakis

(rust_highfive has picked a reviewer for you, use r? to override)

@steveklabnik
Copy link
Member Author

@bors: r+ p=1337

@bors
Copy link
Contributor

bors commented May 19, 2015

📌 Commit ed3c644 has been approved by steveklabnik

@bors
Copy link
Contributor

bors commented May 19, 2015

⌛ Testing commit ed3c644 with merge 55fe958...

@bors
Copy link
Contributor

bors commented May 20, 2015

💔 Test failed - auto-mac-64-opt

@steveklabnik
Copy link
Member Author

@bors: r+ p=100000

@bors
Copy link
Contributor

bors commented May 20, 2015

📌 Commit 55da4c6 has been approved by steveklabnik

@bors
Copy link
Contributor

bors commented May 20, 2015

⌛ Testing commit 55da4c6 with merge 19bb3b9...

@bors
Copy link
Contributor

bors commented May 20, 2015

💔 Test failed - auto-mac-64-opt

@steveklabnik
Copy link
Member Author

@bors: r+ p=100 force

@bors
Copy link
Contributor

bors commented May 20, 2015

📌 Commit 395d01c has been approved by steveklabnik

@steveklabnik
Copy link
Member Author

@bors: force

bors added a commit that referenced this pull request May 20, 2015
@bors
Copy link
Contributor

bors commented May 20, 2015

⌛ Testing commit 395d01c with merge f6b446f...

@bors bors merged commit 395d01c into rust-lang:master May 20, 2015
@Centril Centril added the rollup A PR which is a rollup label Oct 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rollup A PR which is a rollup
Projects
None yet
Development

Successfully merging this pull request may close these issues.