aboutsummaryrefslogtreecommitdiffstats
path: root/man2
diff options
context:
space:
mode:
authorRichard Palethorpe <rpalethorpe@suse.com>2021-07-28 22:19:56 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2021-08-08 01:02:32 +0200
commit136ae439fb6ce5e8a2f87e90ea15bbebf732a8e6 (patch)
tree4823c82b214f0d4891e66798ebf7fc721389aa9d /man2
parentbd9aa1b76246833bad55964d308650ba2a16f19f (diff)
downloadman-pages-136ae439fb6ce5e8a2f87e90ea15bbebf732a8e6.tar.gz
wait.2: Add ESRCH for when pid == INT_MIN
Please see upstream commit: commit dd83c161fbcc5d8be637ab159c0de015cbff5ba4 Author: zhongjiang <zhongjiang@huawei.com> Date: Mon Jul 10 15:53:01 2017 -0700 kernel/exit.c: avoid undefined behaviour when calling wait4() It avoids negating INT_MIN by returning early with ESRCH. Signed-off-by: Richard Palethorpe <rpalethorpe@suse.com> Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man2')
-rw-r--r--man2/wait.29
1 files changed, 9 insertions, 0 deletions
diff --git a/man2/wait.2 b/man2/wait.2
index 5ae955b3fd..63d872ee63 100644
--- a/man2/wait.2
+++ b/man2/wait.2
@@ -455,6 +455,15 @@ was caught; see
The
.I options
argument was invalid.
+.TP
+.B ESRCH
+(for
+.BR wait ()
+or
+.BR waitpid ())
+.I pid
+is equal to
+.I INT_MIN
.SH CONFORMING TO
SVr4, 4.3BSD, POSIX.1-2001.
.SH NOTES