The _exit function is the primitive used for process termination
by exit. It is declared in the header file `unistd.h'.
_exit function is the primitive for causing a process to
terminate with status status. Calling this function does not
execute cleanup functions registered with atexit or
on_exit.
When a process terminates for any reason--either by an explicit termination call, or termination as a result of a signal--the following things happen:
wait or waitpid; see
section Process Completion.
init
process, with process ID 1.)
SIGCHLD signal is sent to the parent process.
SIGHUP signal is sent to each process in the foreground job,
and the controlling terminal is disassociated from that session.
See section Job Control.
SIGHUP
signal and a SIGCONT signal are sent to each process in the
group. See section Job Control.
Go to the first, previous, next, last section, table of contents.