Commit | Line | Data |
---|---|---|
931b8415 | 1 | .\" Copyright (c) 1983, 1991 The Regents of the University of California. |
88b3ccf2 | 2 | .\" All rights reserved. |
9b55b9db | 3 | .\" |
91cff1e1 | 4 | .\" %sccs.include.redist.man% |
88b3ccf2 | 5 | .\" |
0dc4ce59 | 6 | .\" @(#)sigpause.2 6.7 (Berkeley) %G% |
9b55b9db | 7 | .\" |
931b8415 CL |
8 | .Dd |
9 | .Dt SIGPAUSE 2 | |
10 | .Os BSD 4 | |
11 | .Sh NAME | |
12 | .Nm sigpause | |
13 | .Nd atomically release blocked signals and wait for interrupt | |
14 | .Sh SYNOPSIS | |
0dc4ce59 | 15 | .Fd #include <signal.h> |
931b8415 CL |
16 | .Ft int |
17 | .Fn sigpause "int sigmask" | |
18 | .Sh DESCRIPTION | |
19 | .Sy This interface is made obsolete by | |
20 | .Xr sigsuspend 2 . | |
21 | .Pp | |
22 | .Fn Sigpause | |
9d5a8e29 | 23 | assigns |
931b8415 | 24 | .Fa sigmask |
9d5a8e29 KM |
25 | to the set of masked signals |
26 | and then waits for a signal to arrive; | |
27 | on return the set of masked signals is restored. | |
931b8415 | 28 | .Fa Sigmask |
9d5a8e29 | 29 | is usually 0 to indicate that no |
931b8415 CL |
30 | signals are to be blocked. |
31 | .Fn Sigpause | |
32 | always terminates by being interrupted, returning -1 with | |
33 | .Va errno | |
34 | set to | |
35 | .Dv EINTR | |
36 | .Sh SEE ALSO | |
37 | .Xr sigsuspend 2 , | |
38 | .Xr kill 2 , | |
39 | .Xr sigaction 2 , | |
40 | .Xr sigprocmask 2 , | |
41 | .Xr sigblock 2 , | |
42 | .Xr sigvec 2 | |
43 | .Sh HISTORY | |
44 | The | |
45 | .Nm | |
46 | function call appeared in | |
47 | .Bx 4.2 | |
48 | and has been deprecated. |