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

Clarify getppid documentation: explain how None can occur #1209

Merged

Conversation

joshtriplett
Copy link
Member

The getppid syscall can never fail, but rustix returns PID 0 as
None.

closes: #1204

src/process/id.rs Outdated Show resolved Hide resolved
The `getppid` syscall can never fail, but rustix returns PID 0 as
`None`.
@sunfishcode sunfishcode merged commit d51b195 into bytecodealliance:main Nov 9, 2024
40 of 45 checks passed
@sunfishcode
Copy link
Member

Looks great, thanks!

sunfishcode pushed a commit that referenced this pull request Nov 10, 2024
The `getppid` syscall can never fail, but rustix returns PID 0 as
`None`.
sunfishcode pushed a commit that referenced this pull request Nov 10, 2024
The `getppid` syscall can never fail, but rustix returns PID 0 as
`None`.
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.

Please document when getppid can return None
2 participants