.TH EXIT 2 .SH NAME exit \- terminate process .SH SYNOPSIS .B exit(status) .br .B int status; .PP .B _exit(status) .br .B int status; .SH DESCRIPTION .I Exit is the normal means of terminating a process. .I Exit closes all the process's files and notifies the parent process if it is executing a .IR wait . The low-order 8 bits of .I status are available to the parent process. .PP This call can never return. .PP The C function .I exit may cause cleanup actions before the final `sys exit'. The function .I _exit circumvents all cleanup. .SH "SEE ALSO" wait(2) .SH "ASSEMBLER (PDP-11)" (exit = 1.) .br (status in r0) .br .B sys exit