Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site lll-crg.ARpA Path: utzoo!watmath!clyde!burl!ulysses!ucbvax!ucdavis!lll-crg!brooks From: brooks@lll-crg.ARpA (Eugene D. Brooks III) Newsgroups: net.lang.c,net.unix Subject: Re: return() vs. exit() vs. _exit() Message-ID: <1211@lll-crg.ARpA> Date: Sun, 26-Jan-86 01:32:40 EST Article-I.D.: lll-crg.1211 Posted: Sun Jan 26 01:32:40 1986 Date-Received: Sun, 26-Jan-86 17:22:26 EST References: <178@rexago1.UUCP> Reply-To: brooks@lll-crg.UUCP (Eugene D. Brooks III) Distribution: net Organization: Lawrence Livermore Labs, CRG Group Lines: 6 Xref: watmath net.lang.c:7658 net.unix:6940 In article <178@rexago1.UUCP> rich@rexago1.UUCP (K. Richard Magill) writes: >I'm on a binary only 3b2/300 running SV.2.2 so... > >What's the difference between leaving main by return() vs exit() vs _exit()? return(i) from main is the same as exit(i), exit(i) flushes all the open file descriptors and then calls _exit(i). _exit(i) crashes and burns.