Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/sys Note that the exit status may be truncated to t...



details:   https://anonhg.NetBSD.org/src/rev/e16a18606271
branches:  trunk
changeset: 371925:e16a18606271
user:      jschauma <jschauma%NetBSD.org@localhost>
date:      Tue Oct 18 02:31:39 2022 +0000

description:
Note that the exit status may be truncated to the least significant 8 bits.

diffstat:

 lib/libc/sys/_exit.2 |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r 2f5a54cc2bf2 -r e16a18606271 lib/libc/sys/_exit.2
--- a/lib/libc/sys/_exit.2      Mon Oct 17 18:51:35 2022 +0000
+++ b/lib/libc/sys/_exit.2      Tue Oct 18 02:31:39 2022 +0000
@@ -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 @@
 .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



Home | Main Index | Thread Index | Old Index