BSD 4_3_Tahoe development
[unix-history] / usr / man / cat2 / sigpause.0
CommitLineData
2cf6fecc
C
1
2
3
4SIGPAUSE(2) UNIX Programmer's Manual SIGPAUSE(2)
5
6
7
8N\bNA\bAM\bME\bE
9 sigpause - atomically release blocked signals and wait for
10 interrupt
11
12S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
13 s\bsi\big\bgp\bpa\bau\bus\bse\be(\b(s\bsi\big\bgm\bma\bas\bsk\bk)\b)
14 i\bin\bnt\bt s\bsi\big\bgm\bma\bas\bsk\bk;\b;
15
16D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
17 _\bS_\bi_\bg_\bp_\ba_\bu_\bs_\be assigns _\bs_\bi_\bg_\bm_\ba_\bs_\bk to the set of masked signals and
18 then waits for a signal to arrive; on return the set of
19 masked signals is restored. _\bS_\bi_\bg_\bm_\ba_\bs_\bk is usually 0 to indi-
20 cate that no signals are now to be blocked. _\bS_\bi_\bg_\bp_\ba_\bu_\bs_\be always
21 terminates by being interrupted, returning -1 with _\be_\br_\br_\bn_\bo set
22 to EINTR.
23
24 In normal usage, a signal is blocked using _\bs_\bi_\bg_\bb_\bl_\bo_\bc_\bk(2), to
25 begin a critical section, variables modified on the
26 occurrence of the signal are examined to determine that
27 there is no work to be done, and the process pauses awaiting
28 work by using _\bs_\bi_\bg_\bp_\ba_\bu_\bs_\be with the mask returned by _\bs_\bi_\bg_\bb_\bl_\bo_\bc_\bk.
29
30S\bSE\bEE\bE A\bAL\bLS\bSO\bO
31 sigblock(2), sigvec(2)
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63Printed 7/9/88 May 15, 1986 1
64
65
66