Skip to content

Document nix::sys::wait Module #643

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

Open
mmstick opened this issue Jul 3, 2017 · 4 comments
Open

Document nix::sys::wait Module #643

mmstick opened this issue Jul 3, 2017 · 4 comments
Labels

Comments

@mmstick
Copy link

mmstick commented Jul 3, 2017

I'm trying to use waitpid in Ion, but I cannot figure out what each of the WaitStatus variants and their fields represent.

@Susurrus Susurrus added the A-docs label Jul 3, 2017
@Susurrus
Copy link
Contributor

Susurrus commented Jul 3, 2017

Yeah, pretty much everything in src/sys/wait.rs needs docs. A lot of this should be discernible by reading the man pages on waitpid, as we're just providing a safe interface to that functionality. The main functionality should be identical.

@mmstick
Copy link
Author

mmstick commented Jul 4, 2017

Sadly, the man pages for waitpid aren't enough for me to understand how to use it. What's the difference between each of the variants? For example, what's the difference between Continued and StillAlive, or Stopped and Signaled?

@Susurrus
Copy link
Contributor

Susurrus commented Jul 5, 2017

Continued probably maps to the WIFCONTINUED wstatus value. StillAlive probably means it hasn't received any signals. Stopped and Signaled should correspond to WIFSTOPPED and WIFSIGNALED respectively. those WIF* constants are described in the waitpid man pages for more details. I'm not familiar with waitpid, so hopefully that gives you a little direction. Let me know if you get stuck again.

@mmstick
Copy link
Author

mmstick commented Jul 7, 2017

I'm going to work on documenting this module, after having implemented it in the Ion shell and figuring it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants