sigwait.2 (2010 09)

s
sigwait(2) sigwait(2)
errno variable is NOT set if an error occurs.
Upon successful completion,
sigwaitinfo()
and sigtimedwait()
will return the selected signal
number. Otherwise a value of -1 is returned and
errno is set to indicate the error.
ERRORS
If any of the following conditions occur, the sigwait family of routines will return the following error
number:
[EAGAIN]
sigtimedwait()
was called and no signal in the set parameter was delivered
within the time interval specified by the timeout parameter.
If any of the following conditions occur and the condition is detected, the sigwait family of routines will
fail and return the following error number:
[EINVAL] set contains an invalid or unsupported signal number.
[EINVAL]
sigtimedwait() was called and the timeout parameter specified a tv_nsec value
less than zero or greater than or equal to 1000 million, or a tv_sec value less than
zero or greater than or equal to 2147483648 (that is, a value too large to be
represented as a signed 32-bit integer).
[EINTR] The wait was interrupted by an unblocked, caught signal.
[EFAULT] At least one of the set, sig, info, or timeout parameters references an illegal address.
AUTHOR
sigwaitinfo() and sigtimedwait() were derived from the IEEE POSIX P1003.1b standard.
sigwait() was derived from the IEEE POSIX P1003.1c standard.
SEE ALSO
pause(2), sigaction(2), sigpending(2), sigsuspend(2), pthread_sigmask(3T), signal(5).
STANDARDS CONFORMANCE
sigwait():POSIX.1c
sigwaitinfo():POSIX.1b
sigtimedwait():POSIX.1b
2 Hewlett-Packard Company 2 HP-UX 11i Version 3: September 2010