| 1 | .\" Copyright (c) 1983, 1991 The Regents of the University of California. |
| 2 | .\" All rights reserved. |
| 3 | .\" |
| 4 | .\" %sccs.include.redist.man% |
| 5 | .\" |
| 6 | .\" @(#)sigpause.2 6.7 (Berkeley) %G% |
| 7 | .\" |
| 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 |
| 15 | .Fd #include <signal.h> |
| 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 |
| 23 | assigns |
| 24 | .Fa sigmask |
| 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. |
| 28 | .Fa Sigmask |
| 29 | is usually 0 to indicate that no |
| 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. |