|_EXIT(2)||System Calls Manual||_EXIT(2)|
_exit — terminate
the calling process
_exit() function terminates a process
with the following consequences:
SIGCHLDsignal, it is notified of the calling process's termination and status is set as defined by wait(2). (Note that typically only the lower 8 bits of status are passed on to the parent, thus negative values have less meaning.)
SIGCONTsignals are sent to all members of the newly orphaned process group.
SIGHUPsignal is sent to the foreground process group of the controlling terminal, and all current access to the controlling terminal is revoked.
Most C programs call the library routine
exit(3), which flushes buffers,
closes streams, unlinks temporary files, etc., and then calls
_exit() can never return.
_exit() function is defined by
IEEE Std 1003.1-1988 (“POSIX.1”).
exit() system call first appeared in
Version 1 AT&T UNIX, and an
_exit() variant in Version 7
|November 17, 2011||OpenBSD-5.1|