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

Document the sys::wait module #1732

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

vkkoskie
Copy link
Contributor

@vkkoskie vkkoskie commented Jun 5, 2022

Noteworthy secondary changes included as a result of the primary documentation:

  • Additions to unistd::Pid to support waitpid calling conventions
  • Change the waitpid function signature (backward compatible)
  • Application of rustfmt to unistd.rs and sys::wait.rs

Continued from work by

Closes #654 and #651

@vkkoskie vkkoskie force-pushed the wait-documentation branch 2 times, most recently from 2ccb464 to c1f1007 Compare June 5, 2022 17:13
@rtzoeller
Copy link
Collaborator

rtzoeller commented Jun 5, 2022

The Haiku failure is an issue with the rust stdlib. I'll work on a fix.

rust-lang/rust#97771

CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
/// and `PtraceSyscall`. Portable code should avoid exhaustively
/// matching on `WaitStatus`.
/// Note that there are two Linux-specific enum variants,
/// [`PtraceEvent`](WaitStatus) and [`PtraceSyscall`](WaitStatus).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these links correct or did you mean to link to the specific enum variants?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Listing the variants breaks CI builds on the platforms where those variants don't exist. This was my solution after I couldn't figure out how to make cfg apply to the comment block instead of the enum below. Happy to make the change if you know how.

src/unistd.rs Show resolved Hide resolved
src/unistd.rs Outdated Show resolved Hide resolved
vkkoskie added 2 commits June 8, 2022 00:12
Noteworthy secondary changes included as a result of the
primary documentation:

* Additions to unistd::Pid to support
  waitpid calling conventions
* Change the waitpid function signature
  (backward compatible)
* Application of rustfmt to unistd.rs
  and sys::wait.rs

Continued from work by

* Marcin Mielniczuk <marmistrz.dev@gmail.com>
* Michael Aaron Murphy <mmstickman@gmail.com>

Closes nix-rust#654 and nix-rust#651
@vkkoskie vkkoskie force-pushed the wait-documentation branch from 0f3a833 to d01d593 Compare June 8, 2022 04:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants