mirror of https://github.com/mkerrisk/man-pages
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:
parent
ba9ae75ddb
commit
f3491e47ba
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue