NetBSD Problem Report #45769
From eradman@radstation2.eadman.com Mon Jan 2 13:42:27 2012
Return-Path: <eradman@radstation2.eadman.com>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id 9DEE063B954
for <gnats-bugs@gnats.NetBSD.org>; Mon, 2 Jan 2012 13:42:27 +0000 (UTC)
Message-Id: <20120102082000.798923D078@radstation2.eadman.com>
Date: Mon, 2 Jan 2012 03:20:00 -0500 (EST)
From: eradman@radstation2.eadman.com
Reply-To: eradman@radstation2.eadman.com
To: gnats-bugs@gnats.NetBSD.org
Subject: wording issue in exit(3)
X-Send-Pr-Version: 3.95
>Number: 45769
>Category: lib
>Synopsis: wording issue in exit(3)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: lib-bug-people
>State: closed
>Class: doc-bug
>Submitter-Id: net
>Arrival-Date: Mon Jan 02 13:45:00 +0000 2012
>Closed-Date: Mon Jan 02 16:18:58 +0000 2012
>Last-Modified: Mon Jan 02 16:18:58 +0000 2012
>Originator: eradman@radstation2.eadman.com
>Release: NetBSD 5.99.59
>Organization:
Eric Radman <ericshane@eradman.com>
>Environment:
System: NetBSD radstation2.eadman.com 5.99.59 NetBSD 5.99.59 (GENERIC) #0: Fri Dec 30 08:57:52 EST 2011 eradman@radstation2.eadman.com:/home/eradman/obj/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:
Might help if this man page was reworded so that it is clear
how negative return values are interpreted
>How-To-Repeat:
man 3 exit
>Fix:
- Lastly, exit() and _Exit() call _exit(2). Note that typically _exit(2)
- only passes the lower 8 bits of status on to the parent, thus negative
- values have less meaning.
+ Lastly, exit() and _Exit() call _exit(2). Note that _exit(2) only
+ passes the lower 8 bits of status on to the parent, thus supplying a
+ value of -10 would result in an exit code of 246.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: misc-bug-people->lib-bug-people
Responsible-Changed-By: dholland@NetBSD.org
Responsible-Changed-When: Mon, 02 Jan 2012 14:26:04 +0000
Responsible-Changed-Why:
assign correct category and provide a synopsis
From: "David A. Holland" <dholland@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/45769 CVS commit: src/lib/libc/stdlib
Date: Mon, 2 Jan 2012 15:55:30 +0000
Module Name: src
Committed By: dholland
Date: Mon Jan 2 15:55:30 UTC 2012
Modified Files:
src/lib/libc/stdlib: exit.3
Log Message:
Clarify the behavior of exit(x) for out-of-range x. PR 45769
To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/lib/libc/stdlib/exit.3
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Mon, 02 Jan 2012 16:01:36 +0000
State-Changed-Why:
I've extended the wording. Is it clear enough? Negative values shouldn't
be used.
State-Changed-From-To: feedback->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Mon, 02 Jan 2012 16:18:58 +0000
State-Changed-Why:
Feedback mail bounced.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.