From e3beca8848c4f2bfaa8295a7a47e110b436a479b Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Wed, 15 Mar 2017 08:24:10 +0100 Subject: [PATCH] sigwaitinfo.2: sigwaitinfo() can't be used to accept synchronous signals Signed-off-by: Michael Kerrisk --- man2/sigwaitinfo.2 | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/man2/sigwaitinfo.2 b/man2/sigwaitinfo.2 index 2dc849cb5..f7609a61f 100644 --- a/man2/sigwaitinfo.2 +++ b/man2/sigwaitinfo.2 @@ -172,6 +172,18 @@ then exactly one of the threads will actually receive the signal if it becomes pending for the process as a whole; which of the threads receives the signal is indeterminate. +.BR sigwaitinfo () +or +.BR sigtimedwait (), +can't be used to receive signals that +are synchronously generated, such as the +.BR SIGSEGV +signal that results from accessing an invalid memory address +or the +.BR SIGFPE +signal that results from an arithmetic error. +Such signals can be caught only via signal handler. + POSIX leaves the meaning of a NULL value for the .I timeout argument of