summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2005-11-11 05:30:48 +0000
committerdavidxu <davidxu@FreeBSD.org>2005-11-11 05:30:48 +0000
commiteb109d203326d107bcc8ed1c60e7b7e0d6f84028 (patch)
treec3d31a3f2fd93080353e316c9c4402ca3e58716d /lib
parente64485ffe537d89e23a8da11fbf77c541b8bf062 (diff)
downloadFreeBSD-src-eb109d203326d107bcc8ed1c60e7b7e0d6f84028.zip
FreeBSD-src-eb109d203326d107bcc8ed1c60e7b7e0d6f84028.tar.gz
Add notes about queued SIGCHLD.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/wait.210
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/libc/sys/wait.2 b/lib/libc/sys/wait.2
index 2081e2d..67508e1 100644
--- a/lib/libc/sys/wait.2
+++ b/lib/libc/sys/wait.2
@@ -233,6 +233,16 @@ depending on the options in effect for the signal;
see
.Xr intro 2 ,
System call restart.
+.Pp
+The implementation queues one SIGCHLD signal for each child process whose
+status has changed, if wait() or waitpid() returns because the status of
+a child process is available, the pending SIGCHLD signal associated with
+the process ID of the child process will be discarded.
+Any other pending SIGCHLD signals remain pending.
+.Pp
+If SIGCHLD is blocked, if wait() or waitpid() return because the
+status of a child process is available, the pending SIGCHLD signal will be
+cleared unless another status of the child process is available.
.Sh RETURN VALUES
If
.Fn wait
OpenPOWER on IntegriCloud