exit.2 (2010 09)

e
exit(2) exit(2)
A SIGCHLD signal is sent to the parent process.
If the calling process is a controlling process, the
SIGHUP signal is sent to each process in the fore-
ground process group of the controlling terminal belonging to the calling process. The controlling
terminal associated with the session is disassociated from the session, allowing it to be acquired by a
new controlling process.
If the exit of the calling process causes a process group to become orphaned, and if any member of
the newly-orphaned process group is stopped, all processes in the newly-orphaned process group are
sent
SIGHUP and SIGCONT signals.
If the current process has any child processes that are being traced, they are sent a
SIGKILL sig-
nal.
AUTHOR
exit() was developed by HP, AT&T, and the University of California, Berkeley.
_exit() and
_Exit() were developed by HP.
SEE ALSO
sh(1), acct(2), close(2), plock(2), semop(2), shmget(2), shmop(2), sigaction(2), times(2), vfork(2), wait(2),
wait3(2), waitpid(2) atexit(3), fclose(3), pthread_cancel(3T), pthread_exit(3T), pthread_key_create(3T),
signal(5).
See exit conditions ($?).
STANDARDS CONFORMANCE
exit(): AES, SVID2, SVID3, XPG2, XPG3, XPG4, FIPS 151-2, POSIX.1, ANSI C
_exit(): AES, SVID2, SVID3, XPG2, XPG3, XPG4, FIPS 151-2, POSIX.1
_Exit(): ISO/IEC 9899:1999 (C99), UNIX 03
2 Hewlett-Packard Company 2 HP-UX 11i Version 3: September 2010