NAME sigwait - wait for a signal LIBRARY Standard C library ( libc , -lc ) SYNOPSIS #include ... sigwait(const sigset_t *restrict set , int *restrict sig ); Feature Test Macro Requ…sigprocmask (2), sigqueue (3), sigsetops (3), sigwait (3), timespec (3), signal (7), timededicated thread to fetch those signals via sigwait (3). The following shell session demonstrates ... sigwait(set, &sig); if (s != 0) handle_error_en(s, "sigwait"); printf("Signal …this: • sigwaitinfo (2), sigtimedwait (2), and sigwait (3) suspend execution until one of the signals ... sigset (3), sigsetops (3), sigvec (3), sigwait (3), strsignal (3), swapcon…unblocked, or by waiting for it using sigwait (3)), then at least some signal must ... sigaction (2), signal (2), pthread_sigqueue (3), sigwait (3), signalsigprocmask (2), sigqueue (3), sigsetops (3), sigwait (3), timespec (3), signal (7), timesigprocmask (2), sigqueue (3), sigsetops (3), sigwait (3), timespec (3), signal (7), timesigprocmask (2), sigwaitinfo (2), sigsetops (3), sigwait (3), signalsigwaitinfo (2), timerfd_create (2), sigsetops (3), sigwait (3), epoll (7), signalsigwaitinfo (2), timerfd_create (2), sigsetops (3), sigwait (3), epoll (7), signalsigaction (2), pthread_sigmask (3), sigqueue (3), sigwait (3), pthreads (7), signalunblocked or is waiting for it in sigwait (3), at least one unblocked signal mustsigwaitinfo (2), sigtimedwait (2), and sigwait (3) interfaces silently ignore requests to wait for theselist in POSIX.1-2008)] sigsuspend() sigtimedwait() sigwait() sigwaitinfo() sleep() system() tcdrain() usleep() [POSIX.1-2001 only (function removed