return() vs. exit() vs. _exit()

Eugene D. Brooks III brooks at lll-crg.ARpA
Sun Jan 26 16:32:40 AEST 1986


In article <178 at rexago1.UUCP> rich at 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.



More information about the Comp.lang.c mailing list