EXIT(3F)EXIT(3F)NAME
exit - terminate process with status
SYNOPSIS
subroutine exit (status)
integer*4 status
DESCRIPTION
exit flushes and closes all the files of the process, and notifies the
parent process if it is executing a wait. The low-order 8 bits of sta‐
tus are available to the parent process. These 8 bits are shifted left
8 bits, and all other bits are zero. Therefore, status should be in
the range of 256 - 65280.
This call never returns.
The C function exit may cause cleanup actions before the final `sys
exit'.
If you call exit without an argument, you get a warning message, and a
zero is automatically provided as an argument.
FILES
libfui.a
SEE ALSOexit(2), fork(2), fork(3f), wait(2), wait(3f)
03/02/25 EXIT(3F)