From 544747a6a68495fda612e00b99e8f12974a7b7ac Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Thu, 8 Mar 2001 20:43:43 +0000 Subject: document that exit() -> wait() only returns low bits --- lib/libc/sys/_exit.2 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/libc/sys/_exit.2') diff --git a/lib/libc/sys/_exit.2 b/lib/libc/sys/_exit.2 index 78902b87c66..9be387423ba 100644 --- a/lib/libc/sys/_exit.2 +++ b/lib/libc/sys/_exit.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: _exit.2,v 1.10 2000/10/18 05:12:08 aaron Exp $ +.\" $OpenBSD: _exit.2,v 1.11 2001/03/08 20:43:42 deraadt Exp $ .\" $NetBSD: _exit.2,v 1.6 1995/02/27 12:31:34 cgd Exp $ .\" .\" Copyright (c) 1980, 1993 @@ -62,6 +62,9 @@ signal, it is notified of the calling process's termination and .Fa status is set as defined by .Xr wait 2 . +(Note that typically only the lower 8 bits of +.Fa status +is passed on to the parent, thus negative values have less meaning.) .It The parent process ID of all of the calling process's existing child processes are set to 1; the initialization process (see the @@ -102,6 +105,7 @@ can never return. .Xr fork 2 , .Xr intro 2 , .Xr sigaction 2 , +.Xr sysexits 3 , .Xr wait 2 , .Xr exit 3 .Sh STANDARDS -- cgit v1.2.3