From owner-freebsd-bugs Mon Dec 23 23:30:15 2002 Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ECF4237B401 for ; Mon, 23 Dec 2002 23:30:14 -0800 (PST) Received: from guava.silverwraith.com (66-214-248-56.gln-eres.charterpipeline.net [66.214.248.56]) by mx1.FreeBSD.org (Postfix) with SMTP id 0272243EDE for ; Mon, 23 Dec 2002 23:30:14 -0800 (PST) (envelope-from spam-pr@silverwraith.com) Received: (qmail 82936 invoked from network); 24 Dec 2002 07:30:11 -0000 Received: from localhost (127.0.0.1) by localhost with SMTP; 24 Dec 2002 07:30:11 -0000 Date: Mon, 23 Dec 2002 23:30:11 -0800 (PST) From: Avleen Vig X-X-Sender: avleen@guava.silverwraith.com To: Tom Rhodes Cc: "freebsd-bugs@FreeBSD.org" Subject: Re: bin/46501: Ping exits 2 when it should exit 1 In-Reply-To: <200212240644.gBO6iKWD099489@freefall.freebsd.org> Message-ID: <20021223232642.W10191-100000@guava.silverwraith.com> References: <200212240644.gBO6iKWD099489@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > Exit is already documented as 2, like the code. > This has been 2 for a long time now, why do you want to change it > all of a sudden? In my opinion this change isn't correct because so > many other utilities are using exit(2); also. Ping is documented as I stated in ping(8) as exiting 1 when it actually exits 2. I don't know of any other utils that exit(2) when they don't have somthing exiting 1 already. It makes little sense to exit(2) when there's nothing in ping that will exit(1). Thus it makes sense to correct this. I don't believe "it haven't been changed for a long time" is a valid reason for leaving something broken/incorrect. If this won't be fixed, then the documentation needs to be fixed, but I don't feel that's correct. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message