Module Name: src
Committed By: jschauma
Date: Tue Oct 18 02:31:39 UTC 2022
Modified Files:
src/lib/libc/sys: _exit.2
Log Message:
Note that the exit status may be truncated to the least significant 8 bits.
To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/lib/libc/sys/_exit.2
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/sys/_exit.2
diff -u src/lib/libc/sys/_exit.2:1.18 src/lib/libc/sys/_exit.2:1.19
--- src/lib/libc/sys/_exit.2:1.18 Mon Sep 8 17:54:34 2003
+++ src/lib/libc/sys/_exit.2 Tue Oct 18 02:31:39 2022
@@ -1,4 +1,4 @@
-.\" $NetBSD: _exit.2,v 1.18 2003/09/08 17:54:34 wiz Exp $
+.\" $NetBSD: _exit.2,v 1.19 2022/10/18 02:31:39 jschauma Exp $
.\"
.\" Copyright (c) 1980, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -29,7 +29,7 @@
.\"
.\" @(#)_exit.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd April 23, 2002
+.Dd October 17, 2022
.Dt EXIT 2
.Os
.Sh NAME
@@ -68,6 +68,10 @@ the
.Em status
is set as defined by
.Xr wait 2 .
+(Note that only the least significant 8 bits of
+.Em status
+are preserved and returned to the parent via
+.Xr wait 2 Ns .)
.It
The parent process-ID of all of the calling process's existing child
processes are set to 1; the initialization process