-
Notifications
You must be signed in to change notification settings - Fork 654
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
hints for adding sigsuspend(). #1994
Comments
Makes sense.
Not in the success case. But it might also fail with EFAULT.
No. |
There is no 'success' case. It never returns with a success. It's always an 'error' case, where errno is set to distinguish between the errors. And since errno is global, I don't have to return it explicitly, right? |
For this function, failing with |
I'm a rust beginner and I'd like to practice a bit by adding sigsuspend. But I need some hints.
I thought adding it to SigSet right after wait. Regarding the name I'd choose
suspend
, sincewait
had the prefixsig
stripped, too.If sigsuspend returns, it always returns the same value. Is it necessary to return that value to the caller?
Do I have to add some special documentation because it may not return?
The text was updated successfully, but these errors were encountered: