diff options
Diffstat (limited to 'src/unistd.rs')
-rw-r--r-- | src/unistd.rs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/unistd.rs b/src/unistd.rs index 56390d90..0f47a7fc 100644 --- a/src/unistd.rs +++ b/src/unistd.rs @@ -1316,14 +1316,12 @@ pub fn initgroups(user: &CStr, group: Gid) -> Result<()> { Errno::result(res).map(|_| ()) } -/// Suspend the thread until a signal is received +/// Suspend the thread until a signal is received. /// -/// See also [pause(2)](http://pubs.opengroup.org/onlinepubs/9699919799/functions/pause.html) +/// See also [pause(2)](http://pubs.opengroup.org/onlinepubs/9699919799/functions/pause.html). #[inline] -pub fn pause() -> Result<()> { - let res = unsafe { libc::pause() }; - - Errno::result(res).map(drop) +pub fn pause() { + unsafe { libc::pause() }; } /// Suspend execution for an interval of time |