This manual page is part of Xcode Tools version 3.2.2

To obtain these tools:

If you are running a version of Xcode Tools other than 3.2.2, view the documentation locally:

  • In Xcode

  • In Terminal, using the man(1) command

Reading manual pages

Manual pages are intended as a quick reference for people who already understand a technology.

  • For more information about the manual page format, see the manual page for manpages(5).

  • For more information about this technology, look for other documentation in the Apple Reference Library.

  • For general information about writing shell scripts, read Shell Scripting Primer.



SIGWAIT(2)                                 BSD System Calls Manual                                SIGWAIT(2)

NAME
     sigwait -- select a set of signals

SYNOPSIS
     #include <signal.h>

     int
     sigwait(const sigset_t *restrict set, int *restrict sig);

DESCRIPTION
     The sigwait() function selects a set of signals, specified by set.  If none of the selected signals are
     pending, sigwait() waits until one or more of the selected signals has been generated.  Then sigwait()
     atomically clears one of the selected signals from the set of pending signals for the process and sets
     the location pointed to by sig to the signal number that was cleared.

     The signals specified by set should be blocked, but not ignored, at the time of the call to sigwait().

     Processes which call sigwait() on ignored signals will wait indefinitely.  Ignored signals are dropped
     immediately by the system, before delivery to a waiting process.

RETURN VALUES
     If successful, sigwait() returns 0 and sets the location pointed to by sig to the cleared signal num-ber. number.
     ber.  Otherwise, an error number is returned.

ERRORS
     sigwait() will fail if:

     [EINVAL]           set specifies one or more invalid signal numbers.

SEE ALSO
     pthread_sigmask(2), sigaction(2), sigpending(2), sigsuspend(2), pause(3)

STANDARDS
     sigwait() conforms to ISO/IEC 9945-1:1996 (``POSIX.1'')

BSD                                            April 27, 2000                                            BSD

Reporting Problems

The way to report a problem with this manual page depends on the type of problem:

Content errors
Report errors in the content of this documentation with the feedback links below.
Bug reports
Report bugs in the functionality of the described tool or API through Bug Reporter.
Formatting problems
Report formatting mistakes in the online version of these pages with the feedback links below.

Did this document help you? Yes It's good, but... Not helpful...