summaryrefslogtreecommitdiff
path: root/man2
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2013-09-04 15:06:22 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2013-09-04 15:06:22 +0200
commitd8b13fb4d939978f02db3d49697cbccff2881a30 (patch)
tree59a322927c44684e438fdffcfe8025ba6170262e /man2
parentfb854b1378724758a1ffac53445fb6fc3bff5630 (diff)
wait.2: Add details on the fifth argument provided by raw waitid() system call
See https://bugzilla.kernel.org/show_bug.cgi?id=60744 Reported-by: Hannes Landeholm <hannes@jumpstarter.io> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man2')
-rw-r--r--man2/wait.216
1 files changed, 15 insertions, 1 deletions
diff --git a/man2/wait.2 b/man2/wait.2
index 59082147..5c39f8a5 100644
--- a/man2/wait.2
+++ b/man2/wait.2
@@ -46,7 +46,7 @@
.\" 2005-05-10, mtk, __W* flags can't be used with waitid()
.\" 2008-07-04, mtk, removed erroneous text about SA_NOCLDSTOP
.\"
-.TH WAIT 2 2012-12-21 "Linux" "Linux Programmer's Manual"
+.TH WAIT 2 2013-09-04 "Linux" "Linux Programmer's Manual"
.SH NAME
wait, waitpid, waitid \- wait for process to change state
.SH SYNOPSIS
@@ -60,6 +60,8 @@ wait, waitpid, waitid \- wait for process to change state
.BI "int waitid(idtype_t " idtype ", id_t " id \
", siginfo_t *" infop ", int " options );
+ /* This is the glibc and POSIX interface; see
+ NOTES for information on the raw system call. */
.sp
.in -4n
Feature Test Macro Requirements for glibc (see
@@ -518,6 +520,18 @@ type ("clone" or "non-clone").
Do not wait for children of other threads in
the same thread group.
This was the default before Linux 2.4.
+.PP
+The raw
+.BR waitid ()
+system call takes a fith argument, of type
+.IR "struct rusage\ *" .
+If this argument is non-NULL,
+then it is used to return resource usage information about the child,
+in the same manner as
+.BR wait4 (2).
+See
+.BR getrusage (2)
+for details.
.SH BUGS
According to POSIX.1-2008, an application calling
.BR waitid ()