File:  [Power 6/32 Unix Tahoe 4.2BSD] / cci / usr / src / man / man2 / sigpause.2
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Sun Jul 28 12:24:19 2019 UTC (7 years ago) by root
Branches: bsd, MAIN
CVS tags: v12b, v121, HEAD
Power 6/32 Unix version 1.2b

.TH SIGPAUSE 2 "7 July 1983"
.UC 4
.SH NAME
sigpause \- atomically release blocked signals and wait for interrupt
.SH SYNOPSIS
.ft B
sigpause(sigmask)
.br
int sigmask;
.ft R
.SH DESCRIPTION
.I Sigpause
assigns 
.I sigmask
to the set of masked signals
and then waits for a signal to arrive;
on return the set of masked signals is restored.
.I Sigmask
is usually 0 to indicate that no
signals are now to be blocked.
.I Sigpause
always terminates by being interrupted, returning EINTR.
.PP
In normal usage, a signal is blocked using
.IR sigblock (2),
to begin a critical section, variables modified on the occurance
of the signal are examined to determine that there is no work
to be done, and the process pauses awaiting work by using
.I sigpause
with the mask returned by
.IR sigblock .
.SH SEE ALSO
sigblock(2), sigvec(2)

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.