Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

fork(2)

wait(2)

exit(3)

EXIT(2)

NAME

_exit − terminate a process

USAGE

_exit(status)
int status;

DESCRIPTION

_exit 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 wait or is interested in the SIGCHLD signal, it is notified of the calling process’ termination and the low-order eight bits of status are made available to it; see wait(2). 

The parent process ID of all of the calling process’ existing child processes are also set to 1.  This means that the initialization process (see intro(2)) inherits each of these processes as well. 

Most C programs call the library routine exit(3), which performs clean-up actions in the standard I/O library before calling _exit.

RETURN VALUE

This call never returns a value. 

RELATED INFORMATION

fork(2), wait(2), exit(3)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026