From owner-freebsd-hackers Wed Oct 15 15:52:59 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id PAA15787 for hackers-outgoing; Wed, 15 Oct 1997 15:52:59 -0700 (PDT) (envelope-from owner-freebsd-hackers) Received: from awfulhak.demon.co.uk (awfulhak.demon.co.uk [158.152.17.1]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id PAA15734 for ; Wed, 15 Oct 1997 15:52:38 -0700 (PDT) (envelope-from brian@awfulhak.org) Received: from gate.lan.awfulhak.org (localhost [127.0.0.1]) by awfulhak.demon.co.uk (8.8.5/8.8.5) with ESMTP id XAA18405; Wed, 15 Oct 1997 23:24:26 +0100 (BST) Message-Id: <199710152224.XAA18405@awfulhak.demon.co.uk> X-Mailer: exmh version 2.0zeta 7/24/97 To: Mark Tinguely cc: hackers@FreeBSD.ORG, jacques@wired.ctech.ac.za Subject: Re: values for exit() In-reply-to: Your message of "Wed, 15 Oct 1997 11:54:28 CDT." <199710151654.LAA22736@plains.NoDak.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 15 Oct 1997 23:24:26 +0100 From: Brian Somers Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > Where can I find the exit values for > > exit()? Meaning, what is the difference > > between eg exit(1) and exit(2)? > > each application defines their return code meanings. The important > rule is that 0 means no error, non-zero indicates an error or special > condition. Although this is true in practice, the theory is in sysexits.h > --mark. -- Brian , , Don't _EVER_ lose your sense of humour....