Manual Reference Pages - SIGTIMEDWAIT (2)
- wait for queued signals (REALTIME)
const sigset_t *restrict set siginfo_t *restrict info
const struct timespec *restrict timeout
sigwaitinfo const sigset_t * restrict set siginfo_t * restrict info
system call is equivalent to
except that if none of the signals specified by
waits for the time interval specified in the
structure referenced by
structure pointed to by
is zero-valued and if none of the signals specified by
are pending, then
returns immediately with an error.
pointer, the behavior is unspecified.
clock is used to measure the time interval specified by the
system call selects the pending signal from the set specified by
Should any of multiple pending signals in the range
be selected, it shall be the lowest numbered one.
selection order between realtime and non-realtime signals, or
between multiple pending non-realtime signals, is unspecified.
If no signal in
is pending at the time of the call, the calling thread
is suspended until one or more signals in
become pending or until it is interrupted by an unblocked, caught signal.
system call is equivalent to the
system call if the
function is equivalent to
except that the selected signal number shall be stored in the
member, and the cause of the signal shall be stored in the
Besides this, the
system calls may return
if interrupted by signal, which is not allowed for the
If any value is queued to the selected signal, the first such queued
value is dequeued and, if the info argument is
the value is stored in the
The system resource used to queue the signal
is released and returned to the system for other use.
If no value is queued,
the content of the
member is zero-valued.
If no further signals are
queued for the selected signal, the pending indication for that signal
Upon successful completion (that is, one of the signals specified by
is pending or is generated)
return the selected signal number.
Otherwise, the functions return a value of -1
and set the global variable
to indicate the error.
will fail if:
No signal specified by set was generated within the specified timeout period.
system calls fail if:
system call may also fail if:
The wait was interrupted by an unblocked, caught signal.
argument specified a
value less than zero or greater than or equal
to 1000 million.
Kernel only checks for this error if no signal is pending in set and it
is necessary to wait.
system calls conform to
Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.