aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2018-09-15 10:38:48 -0700
committerMichael Kerrisk <mtk.manpages@gmail.com>2020-02-08 11:59:37 +0100
commitf3491e47baa058ab071cf7b5fb25c209f3c12b6d (patch)
tree45393c56a273657c6c8a725ba2d3e9e3ed6559fb
parentba9ae75ddb3390d3221c9a833196fcdf06d2ccbc (diff)
downloadman-pages-f3491e47baa058ab071cf7b5fb25c209f3c12b6d.tar.gz
exit.3: Use hex for the status mask
Admittedly, the POSIX specification for exit() also uses octal. However, 0xFF immediately indicates the lowest 8 bits to me whereas I had to think a bit about the octal mask. Cowritten-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man2/_exit.22
-rw-r--r--man3/exit.35
2 files changed, 3 insertions, 4 deletions
diff --git a/man2/_exit.2 b/man2/_exit.2
index c55d2a612c..6e656c8f49 100644
--- a/man2/_exit.2
+++ b/man2/_exit.2
@@ -65,7 +65,7 @@ The process's parent is sent a
signal.
.PP
The value
-.I "status & 0377"
+.I "status & 0xFF"
is returned to the parent process as the process's exit status, and
can be collected using one of the
.BR wait (2)
diff --git a/man3/exit.3 b/man3/exit.3
index 98f4da8ca7..da675de68b 100644
--- a/man3/exit.3
+++ b/man3/exit.3
@@ -38,9 +38,8 @@ exit \- cause normal process termination
.SH DESCRIPTION
The
.BR exit ()
-function causes normal process termination and the
-value of \fIstatus & 0377\fP is returned to the parent
-(see
+function causes normal process termination and the value of \fIstatus &
+0xFF\fP is returned to the parent (see
.BR wait (2)).
.PP
All functions registered with