Suspends the calling thread until one of the signals in the set is delivered to the thread.
#include <signal.h> int sigwait ( const sigset_t *set, int *sig );
(IN) Points to a set of signals.
(OUT) Points to the signal that was delivered to the thread. For a list of signals, see Section 5.1, Standard Signals.
If successful, returns 0. Otherwise, returns one of the following errors.
IMPORTANT:This function is only available to NLMs that are linked with POSIX semantics.
The sigwait function suspends the calling thread until one of the signals in set is delivered to the calling thread. It then stores the number of the signal received in the sig parameter and returns.