![]() |
![]() |
![]() |
Select a pending signal
#include <sys/neutrino.h> int SignalWaitinfo( const sigset_t* set, siginfo_t* info ); int SignalWaitinfo_r( const sigset_t* set, siginfo_t* info );
libc
The SignalWaitinfo() and SignalWaitinfo_r() functions are identical except in the way they indicate errors. See the Returns section for details.
These kernel calls select the pending signal from the set specified by set. If no signal in set is pending at the time of the call, the thread blocks until one or more signals in set become pending or until interrupted by an unblocked, caught signal.
If the info argument isn't NULL, information on the selected signal is stored there as follows:
siginfo_t member | Description |
---|---|
si_signo | Selected signal number |
si_code | Signal code |
si_value | Signal value |
If, while SignalWaitinfo() is waiting, a caught signal occurs that isn't blocked, the signal handler is invoked and SignalWaitinfo() is interrupted with an error of EINTR.
The only difference between these functions is the way they indicate errors:
Safety: | |
---|---|
Cancellation point | Yes |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |
![]() |
![]() |
![]() |