|
|
#include <unistd.h>
void _exit(int status);
All of the file descriptors open in the calling process are closed.
A SIGCHLD signal is sent to the calling process's parent process.
If the parent process of the calling process has "not" specified the SA_NOCLDWAIT flag (see sigaction.2
Each attached shared memory segment is detached and the value of shm_nattach in the data structure associated with its shared memory identifier is decremented by 1. Memory mappings created in the process are unmapped.
For each semaphore for which the calling process has set a semadj value (see semop.2 that semadj value is added to the semval of the specified semaphore.
If the process has process, text or data locks, an unlock is performed (see plock.3c and memcntl.2
All open named semaphores in the process are closed as if by appropriate calls to sem_close.3r All open message queues in the process are closed as if by appropriate calls to mq_close.3r Any outstanding asynchronous I/O operations may be cancelled.
An accounting record is written on the accounting file if the system's accounting routine is enabled (see acct.2
If the process is a controlling process, SIGHUP is sent to the foreground process group of its controlling terminal and its controlling terminal is deallocated.
If the calling process has any stopped children whose process group
will be orphaned when the calling process exits, or if the calling
process is a member of
a process group that will be orphaned when the calling process exits,
that process group will be sent
SIGHUP
and
SIGCONT
signals.
|
|
Created by unroff & hp-tools. © by Hans-Peter Bischof. All Rights Reserved (1997).
Last modified 21/April/97