Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site pur-phy.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxl!ihnp4!inuxc!pur-ee!CS-Mordred!Pucc-H:Physics:crl From: crl@pur-phy.UUCP (Charles LaBrec) Newsgroups: net.unix,net.lang.c Subject: Re: 'exit(1);' considered useless (slight flame) Message-ID: <1181@pur-phy.UUCP> Date: Fri, 3-Feb-84 09:31:28 EST Article-I.D.: pur-phy.1181 Posted: Fri Feb 3 09:31:28 1984 Date-Received: Wed, 8-Feb-84 05:28:22 EST References: <957@proper.UUCP> Organization: Purdue University Physics Dept. Lines: 9 While exit(errno) is more useful than exit(1) everywhere, I would rather see a perror() followed by an exit with a value from. The trouble is that not all errors come from system calls, and who really wants to check the exit status to determine the actual error. Furthermore, if I do an exit(EPERM), I'd really like to know which file I failed on. Charles LaBrec UUCP: pur-ee!Physics:crl, purdue!Physics:crl INTERNET: crl @ pur-phy.UUCP