.\" Copyright (c) 1980 Regents of the University of California.
.\" All rights reserved. The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\" @(#)_exit.2 6.1 (Berkeley) %G%
_exit \- terminate a process
terminates a process with the following consequences:
All of the descriptors open in the calling process are closed.
If the parent process of the calling process is executing a
or is interested in the SIGCHLD signal,
then it is notified of the calling process's termination and
the low-order eight bits of \fIstatus\fP are made available to it;
The parent process ID of all of the calling process's existing child
processes are also set to 1. This means that the initialization process
inherits each of these processes as well.
Most C programs call the library routine
which performs cleanup actions in the standard i/o library before
fork(2), wait(2), exit(3)