sigwaitinfo(2) System Calls Manual sigwaitinfo(2) sigwaitinfo, sigtimedwait, rt_sigtimedwait - C (libc, -lc) #include int sigwaitinfo(const sigset_t *restrict set, siginfo_t *_Nullable restrict info); int sigtimedwait(const sigset_t *restrict set, siginfo_t *_Nullable restrict info, const struct timespec *restrict timeout); glibc (. feature_test_macros(7)): sigwaitinfo(), sigtimedwait(): _POSIX_C_SOURCE >= 199309L sigwaitinfo() , set ( set , sigwaitinfo() ). sigwaitinfo() . info NULL, , , siginfo_t (. sigaction(2)), . set , , sigwaitinfo(), ; signal(7). sigtimedwait() operates in exactly the same way as sigwaitinfo() except that it has an additional argument, timeout, which specifies the interval for which the thread is suspended waiting for a signal. (This interval will be rounded up to the system clock granularity, and kernel scheduling delays mean that the interval may overrun by a small amount.) This argument is a timespec(3) structure. 0, : sigtimedwait() , , , , set . sigwaitinfo() sigtimedwait() (.. ). -1 errno . EAGAIN No signal in set became pending within the timeout period specified to sigtimedwait(). EINTR ; . signal(7). ( , set.) EINVAL timeout . C Linux, sigwaitinfo() , sigtimedwait(). glibc sigwaitinfo() sigtimedwait() , NPTL. nptl(7). , Linux sigtimedwait(). , Linux 2.2, 32- sigset_t , , . rt_sigtimedwait() sigset_t. , size_t sigsetsize, ( ) set. sizeof(sigset_t) ( EINVAL). glibc sigtimedwait() rt_sigtimedwait(), . POSIX.1-2008. POSIX.1-2001. set sigprocmask(2) ( , , sigwaitinfo() sigtimedwait()) . , , , sigwaitinfo() sigtimedwait()). , , , , (. signal(7)). SIGKILL SIGSTOP . () sigwaitinfo() sigtimedwait(), , ; . sigwaitinfo() sigtimedwait() , , SIGSEGV , SIGFPE . . POSIX NULL timeout sigtimedwait(), , , sigwaitinfo(), Linux. kill(2), sigaction(2), signal(2), signalfd(2), sigpending(2), sigprocmask(2), sigqueue(3), sigsetops(3), sigwait(3), timespec(3), signal(7), time(7) () Alexander Golubev , Azamat Hackimov , Hotellook, Nikita , Spiros Georgaras , Vladislav , Yuri Kozlov , Kirill Rekhov ; GNU (GNU General Public License - GPL, 3 ) , - . - , , () () () <>. Linux 6.15 17 2025 . sigwaitinfo(2)