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>
This commit is contained in:
Benjamin Peterson 2018-09-15 10:38:48 -07:00 committed by Michael Kerrisk
parent ba9ae75ddb
commit f3491e47ba
2 changed files with 3 additions and 4 deletions

View File

@ -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)

View File

@ -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