Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ exit(3) — SunOS 0.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

fork(2)

wait(2)

_exit(2)

EXIT(3)  —  System Interface Manual — Subroutines

NAME

exit − terminate a process

SYNOPSIS

exit(status)
int status;

DESCRIPTION

exit terminates a process with the following consequences:

All 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’s termination and the low-order eight bits of status are made avaliable to it; see wait(2). The low-order 8 bits of status are available to the parent process. 

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 (see intro(2)) inherits each of these processes as well.

SEE ALSO

fork(2), wait(2), _exit(2)

Sun System Release 0.3  —  26 April 1983

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