rt_sigtimedwait(2) -- Linux man page
NAMErt_sigtimedwait - Synchronously wait for queued signals specified in uthese
- long sys_rt_sigtimedwait (const sigset_t *uthese, siginfo_t *uinfo, const struct struct timespec *uts, size_t sigsetsize);
rt_sigtimedwait synchronously waits for queued signals specified in uthese. The uinfo value, if non-NULL, indicates to the call to return a structure of type siginfo_t containing information about the signal. The uts variable enables an upper bound on the time for when the process is suspended. sigsetsize should indicate the size of a sigset_t type.
- sigsetsize or uts was invalid.
- uinfo was invalid.
- No signal in uthese was delivered in the uts time period.
- The wait period was interrupted by a signal handler.