aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Xu <davidxu@FreeBSD.org>2005-11-11 05:40:39 +0000
committerDavid Xu <davidxu@FreeBSD.org>2005-11-11 05:40:39 +0000
commita0e82eba5d6abf7cff5971e4d6d72034020df8de (patch)
tree24ddb78d60555878425dc958147f9feb3cd40a02
parentc05e95d4ff5b88c74c05f031ce583ca10aa1094e (diff)
downloadsrc-a0e82eba5d6abf7cff5971e4d6d72034020df8de.tar.gz
src-a0e82eba5d6abf7cff5971e4d6d72034020df8de.zip
Add descriptions about signal queue.
Notes
Notes: svn path=/head/; revision=152295
-rw-r--r--lib/libc/sys/sigwait.224
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/libc/sys/sigwait.2 b/lib/libc/sys/sigwait.2
index 2d635cbb2cd2..632d9919e031 100644
--- a/lib/libc/sys/sigwait.2
+++ b/lib/libc/sys/sigwait.2
@@ -58,6 +58,24 @@ The signals specified by
.Fa set
should be blocked at the time of the call to
.Fn sigwait .
+.Pp
+If more than one thread is using
+.Fn sigwait
+to wait for the same signal, no more than one of these threads will return from
+.Fn sigwait
+with the signal number. If more than a single thread is blocked in
+.Fn sigwait
+for a signal when that signal is generated for the process, it is unspecified
+which of the waiting threads returns from
+.Fn sigwait .
+If the signal is generated for a specific thread, as by
+.Fn pthread_kill ,
+only that thread will return.
+.Pp
+Should any of the multiple pending signals in the range SIGRTMIN to SIGRTMAX be
+selected, it will be the lowest numbered one. The selection order between realtime
+and non-realtime signals, or between multiple pending non-realtime signals,
+is unspecified.
.Sh RETURN VALUES
If successful,
.Fn sigwait
@@ -75,8 +93,14 @@ The
.Fa set
argument
specifies one or more invalid signal numbers.
+.It Bq Er EFAULT
+Any arguments point outside the allocated address space or there is a
+memory protection fault.
.El
.Sh SEE ALSO
+.Xr sigtimedwait 2 ,
+.Xr sigwaitinfo 2 ,
+.Xr sigqueue 2 ,
.Xr sigaction 2 ,
.Xr sigpending 2 ,
.Xr sigsuspend 2 ,