-
Notifications
You must be signed in to change notification settings - Fork 675
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
Conversation
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 I think our preferred change here would be:
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. |
Sounds good. I'll look into that. |
Hi @nikklassen Any luck? Need any help? Want somebody else to take over the task? |
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). |
Sure! I basically just do a release of libc whenever someone requests it, so feel free to request it at any time :) |
Now, replacing the two numbers by their respective libc constants is all that is left to do. |
@homu r+ |
📌 Commit 8fb0c51 has been approved by |
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
☀️ Test successful - status |
The final version of libc's PR nix-rust#379 removed a few definitions, and fixed OpenBSD's definition of fn kevent.
My understanding is that this flag is required by POSIX, so all systems should allow for it