1SIGSUSPEND(2)                 System Calls Manual                SIGSUSPEND(2)
2
3
4

NAME

6       sigsuspend - atomically release blocked signals and wait for interrupt
7

SYNOPSIS

9       #include <signal.h>
10
11       int
12       sigsuspend(sigmask)
13       sigset_t *sigmask
14

DESCRIPTION

16       Sigsuspend()  temporarily changes the blocked signal mask to the set to
17       which sigmask points, and then waits for a signal to arrive; on  return
18       the previous set of masked signals is restored.  The signal mask set is
19       usually empty to indicate that all signals are to be unblocked for  the
20       duration of the call.
21
22       In  normal  usage,  a signal is blocked using sigprocmask(2) to begin a
23       critical section, variables modified on the occurrence  of  the  signal
24       are  examined  to  determine  that there is no work to be done, and the
25       process pauses awaiting work by using sigsuspend with the previous mask
26       returned by sigprocmask.
27

RETURN VALUES

29       The sigsuspend function always terminates by being interrupted, returnā€
30       ing -1 with errno set to EINTR.  If EFAULT is set  in  errno  then  set
31       contains an invalid address.
32

SEE ALSO

34       sigprocmask(2), sigaction(2), sigsetops(3)
35

STANDARDS

37       The   sigsuspend   function   call   conforms  to  IEEE  Std1003.1-1988
38       (``POSIX'').
39
40
41
424.4 Berkeley Distribution      September 3, 1997                 SIGSUSPEND(2)
Impressum