#include <signal.h> int sigtimedwait( const sigset_t *set, siginfo_t *info, const struct timespec *timeout );
This function selects a pending signal based on the set specified in
set
, atomically clears it from the set of pending signals, and
returns information about that signal in info
. The calling thread
will block up to timeout
waiting for the signal to arrive.
If timeout
is NULL, then the calling thread will wait forever for
the specified signal set.
Copyright © 1988-2007OAR Corporation