You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently nix::unistd::pause returns an nix::Error, however it can only return EINTR as an error, which is the point of pause. It pauses until a signal is received. So I suggest to remove the return value completely and document that pause only returns if the process receives a signal.
If you want to be really safe maybe an assert can be added to check if the error is really EINTR, but then the OS/libc is vialting the spec.
Currently
nix::unistd::pause
returns annix::Error
, however it can only returnEINTR
as an error, which is the point of pause. It pauses until a signal is received. So I suggest to remove the return value completely and document thatpause
only returns if the process receives a signal.If you want to be really safe maybe an assert can be added to check if the error is really
EINTR
, but then the OS/libc is vialting the spec.Man page: http://pubs.opengroup.org/onlinepubs/9699919799/functions/pause.html.
The text was updated successfully, but these errors were encountered: