Path: utzoo!utgpu!water!watmath!clyde!bellcore!faline!ulysses!allegra!mit-eddie!uw-beaver!teknowledge-vaxc!mkhaw From: mkhaw@teknowledge-vaxc.UUCP Newsgroups: comp.lang.c Subject: Re: VMS and exit(-1) Message-ID: <20527@teknowledge-vaxc.ARPA> Date: 24 Jan 88 08:36:00 GMT References: <572@cresswell.quintus.UUCP> Organization: Teknowledge, Inc., Palo Alto CA Lines: 21 Posted: Sun Jan 24 03:36:00 1988 >> Doesn't *anybody* on this newsgroup actually _check_things_out_ before >> they send? Arrrrrgh! > Yes we do. exit(0) *is* silent in VMS 4.5 CC 2.3. > I would still like to know which systems exit(0) and exit(1) don't > work in, and as this misunderstanding shows, it is important that > people quote version numbers in their reports. Well, I can't check this anymore since that particular system is long gone, but VMS 3.5, C 1.2 most certainly had the exit(0) bug. I just tried main() { exit(0); } on VMS 4.4 and microVMS 4.5, C 2.3-024, and both have the exit(0) bug. There may also be variations in the version of the runtime library that affect the results. Mike Khaw -- internet: mkhaw@teknowledge-vaxc.arpa usenet: {uunet|sun|ucbvax|decwrl|uw-beaver}!mkhaw%teknowledge-vaxc.arpa USnail: Teknowledge Inc, 1850 Embarcadero Rd, POB 10119, Palo Alto, CA 94303