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

Add missing wait flag WUNTRACED for non-Linux systems #379

Merged
merged 3 commits into from
Jul 1, 2016

Conversation

nikklassen
Copy link
Contributor

My understanding is that this flag is required by POSIX, so all systems should allow for it

@posborne
Copy link
Member

Hi @nikklassen, thanks for the change!

We have been on a push to move all constant definitions like this to the libc crate. It appears that WNOHANG is present there but WUNTRACED is not (currently).

I think our preferred change here would be:

  1. Add WUNTRACED to libc
  2. Issue PR against nix modifying the bitfield and also updating to use the constants defined within libc.

Adding to libc gets us additional verification on the constant (via the testing done in libc) and also makes the constant available to Rust users that may not be using nix.

@nikklassen
Copy link
Contributor Author

Sounds good. I'll look into that.

@posborne
Copy link
Member

Hi @nikklassen Any luck? Need any help? Want somebody else to take over the task?

@nikklassen
Copy link
Contributor Author

I got my pull request to libc accepted, I'm just waiting for them to bump the version so that I can update the code here. Unfortunately I don't know how long that'll take

@posborne
Copy link
Member

I got my pull request to libc accepted, I'm just waiting for them to bump the version so that I can update the code here. Unfortunately I don't know how long that'll take

Sounds good. @alexcrichton any chance of a version bump soon? I have another change into libc that I am waiting on as well. The alternative (CC @kamalmarhubi) would be to have nix master track libc in git and then to synchronize on releases (this has some risk but not too big as there doesn't usually seem to be a big delay in libc releases).

@alexcrichton
Copy link
Contributor

Sure! I basically just do a release of libc whenever someone requests it, so feel free to request it at any time :)

@fiveop
Copy link
Contributor

fiveop commented Jun 29, 2016

Now, replacing the two numbers by their respective libc constants is all that is left to do.

@fiveop
Copy link
Contributor

fiveop commented Jul 1, 2016

@homu r+

@homu
Copy link
Contributor

homu commented Jul 1, 2016

📌 Commit 8fb0c51 has been approved by fiveop

homu added a commit that referenced this pull request Jul 1, 2016
Add missing wait flag WUNTRACED for non-Linux systems

My understanding is that this flag is required by POSIX, so all systems should allow for it
@homu
Copy link
Contributor

homu commented Jul 1, 2016

⌛ Testing commit 8fb0c51 with merge a869f5c...

@homu
Copy link
Contributor

homu commented Jul 1, 2016

☀️ Test successful - status

@homu homu merged commit 8fb0c51 into nix-rust:master Jul 1, 2016
asomers added a commit to asomers/nix that referenced this pull request Sep 9, 2016
The final version of libc's PR nix-rust#379 removed a few definitions, and fixed
OpenBSD's definition of fn kevent.
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.

None yet

5 participants