4.3BSD beta release manual page
[unix-history] / usr / src / lib / libc / compat-43 / sigpause.2
... / ...
CommitLineData
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.\"
5.\" @(#)sigpause.2 6.1 (Berkeley) %G%
6.\"
7.TH SIGPAUSE 2 ""
8.UC 4
9.SH NAME
10sigpause \- atomically release blocked signals and wait for interrupt
11.SH SYNOPSIS
12.ft B
13sigpause(sigmask)
14.br
15int sigmask;
16.ft R
17.SH DESCRIPTION
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
28always terminates by being interrupted, returning \-1 with
29.I errno
30set to EINTR.
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 .
40.SH SEE ALSO
41sigblock(2), sigvec(2)