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 nix::sys::wait Module #643

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

Comments

Projects
None yet
2 participants
@mmstick
Copy link

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

This comment has been minimized.

Copy link
Contributor

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

This comment has been minimized.

Copy link
Author

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

This comment has been minimized.

Copy link
Contributor

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

This comment has been minimized.

Copy link
Author

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
You can’t perform that action at this time.