4.3BSD beta release manual page
[unix-history] / usr / src / lib / libc / compat-43 / sigpause.2
CommitLineData
9b55b9db
KM
1.\" Copyright (c) 1980 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
4c40fc65 5.\" @(#)sigpause.2 6.1 (Berkeley) %G%
9b55b9db 6.\"
4c40fc65 7.TH SIGPAUSE 2 ""
9b55b9db
KM
8.UC 4
9.SH NAME
9d5a8e29 10sigpause \- atomically release blocked signals and wait for interrupt
9b55b9db 11.SH SYNOPSIS
9d5a8e29
KM
12.ft B
13sigpause(sigmask)
14.br
15int sigmask;
16.ft R
9b55b9db 17.SH DESCRIPTION
9d5a8e29
KM
18.I Sigpause
19assigns
20.I sigmask
21to the set of masked signals
22and then waits for a signal to arrive;
23on return the set of masked signals is restored.
24.I Sigmask
25is usually 0 to indicate that no
26signals are now to be blocked.
27.I Sigpause
4c40fc65
KM
28always terminates by being interrupted, returning \-1 with
29.I errno
30set to EINTR.
9d5a8e29
KM
31.PP
32In normal usage, a signal is blocked using
33.IR sigblock (2),
34to begin a critical section, variables modified on the occurance
35of the signal are examined to determine that there is no work
36to be done, and the process pauses awaiting work by using
37.I sigpause
38with the mask returned by
39.IR sigblock .
9b55b9db 40.SH SEE ALSO
9d5a8e29 41sigblock(2), sigvec(2)