Describe behavior when multiple threads are blocked in

sigwaitinfo()/sigtimedwait().
This commit is contained in:
Michael Kerrisk 2008-07-02 13:29:00 +00:00
parent e95c17261a
commit 124fa3b75a
1 changed files with 10 additions and 1 deletions

View File

@ -20,7 +20,7 @@
.\" Formatted or processed versions of this manual, if unaccompanied by
.\" the source, must acknowledge the copyright and authors of this work.
.\"
.TH SIGWAITINFO 2 2007-07-26 "Linux" "Linux Programmer's Manual"
.TH SIGWAITINFO 2 2008-06-02 "Linux" "Linux Programmer's Manual"
.SH NAME
sigwaitinfo, sigtimedwait \- synchronously wait for queued signals
.SH SYNOPSIS
@ -142,6 +142,15 @@ the signal being delivered to a thread other than the one calling
or
.BR sigtimedwait ()).
.PP
If multiple threads of a process are blocked
waiting for the same signal(s) in
.BR sigwaitinfo ()
or
.BR sigtimedwait (),
then exactly one of the threads will actually receive the
signal when it is generated;
which of the threads receives the signal is indeterminate.
POSIX leaves the meaning of a NULL value for the
.I timeout
argument of