EXIT(2) HP Integral PC EXIT(2) EXIT(2) HP Integral PC EXIT(2) EXIT(2) HP Integral PC EXIT(2) EXIT(2) HP Integral PC EXIT(2) NAME NAME NAME NAME exit - terminate process SYNOPSIS SYNOPSIS SYNOPSIS SYNOPSIS exit (status) int status; DESCRIPTION DESCRIPTION DESCRIPTION DESCRIPTION Exit terminates the calling process with the following consequences: All of the file descriptors open in the calling process are closed. If the parent process of the calling process is executing a wait , it is notified of the calling process's termination and the low order eight bits (i.e., bits 0377) of status are made available to it; see wait (2). If the parent process of the calling process is not executing a wait , the calling process is transformed into a zombie process. A "zombie process" is a process that only occupies a slot in the process table, it has no other space allocated either in user or kernel space. The process table slot that it occupies is partially overlaid with time accounting information (see ) to be used by times. The parent process ID of all of the calling process's existing child processes and zombie processes is set to 1. This means the initialization process (see intro (2)) inherits each of these processes. An accounting record is written on the accounting file if the system's accounting routine is enabled; see acct (2). If the process ID, tty group ID, and process group ID of the calling process are equal, the SIGHUP signal is sent to each processes that has a process group ID equal to that of the calling process. SEE ALSO SEE ALSO SEE ALSO SEE ALSO signal(2), wait(2). WARNING WARNING WARNING WARNING See WARNING in signal (2). Hewlett-Packard - 1 - (printed 12/12/84)