|SIGWAIT(3)||Linux Programmer's Manual||SIGWAIT(3)|
int sigwait(const sigset_t *set, int *sig);
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
Glibc 2.25 and earlier: _POSIX_C_SOURCE
The operation of sigwait() is the same as sigwaitinfo(2), except that:
- sigwait() returns only the signal number, rather than a siginfo_t structure describing the signal.
- The return values of the two functions are different.
- set contains an invalid signal number.
|sigwait ()||Thread safety||MT-Safe|
The glibc implementation of sigwait() silently ignores attempts to wait for the two real-time signals that are used internally by the NPTL threading implementation. See nptl(7) for details.