xref: /original-bsd/lib/libc/gen/pause.3 (revision fbc8b8c6)
Copyright (c) 1980 Regents of the University of California.
All rights reserved. The Berkeley software License Agreement
specifies the terms and conditions for redistribution.

@(#)pause.3 6.2 (Berkeley) 04/10/89

PAUSE 3 ""
C 4
NAME
pause - stop until signal
SYNOPSIS
pause()
DESCRIPTION
Pause is made obsolete by sigpause(3).

Pause never returns normally. It is used to give up control while waiting for a signal from kill (2) or an interval timer, see setitimer (2). Upon termination of a signal handler started during a pause, the pause call will return.

"RETURN VALUE
Always returns -1.
ERRORS
Pause always returns:

15 [EINTR] The call was interrupted.

"SEE ALSO
kill(2), select(2), sigpause(2)