Revision control

Copy as Markdown

Other Tools

use crate::backend;
/// `pause()`
///
/// The POSIX `pause` interface returns an error code, but the only thing
/// `pause` does is sleep until interrupted by a signal, so it always
/// returns the same thing with the same error code, so in rustix, the
/// return value is omitted.
///
/// # References
/// - [POSIX]
/// - [Linux]
/// - [Apple]
/// - [FreeBSD]
/// - [NetBSD]
/// - [OpenBSD]
/// - [DragonFly BSD]
/// - [illumos]
///
#[inline]
pub fn pause() {
backend::event::syscalls::pause()
}