BSD 4_2 development
authorCSRG <csrg@ucbvax.Berkeley.EDU>
Thu, 28 Jul 1983 05:01:16 +0000 (21:01 -0800)
committerCSRG <csrg@ucbvax.Berkeley.EDU>
Thu, 28 Jul 1983 05:01:16 +0000 (21:01 -0800)
Work on file usr/man/man2/exit.2

Synthesized-from: CSRG/cd1/4.2

usr/man/man2/exit.2 [new file with mode: 0644]

diff --git a/usr/man/man2/exit.2 b/usr/man/man2/exit.2
new file mode 100644 (file)
index 0000000..76ef57d
--- /dev/null
@@ -0,0 +1,40 @@
+.TH EXIT 2 "27 July 1983"
+.UC 4
+.SH NAME
+_exit \- terminate a process
+.SH SYNOPSIS
+.nf
+.ft B
+_exit(status)
+int status;
+.fi
+.SH DESCRIPTION
+.I _exit
+terminates a process with the following consequences:
+.in +5n
+.PP
+All of the descriptors open in the calling process are closed.
+.PP
+If the parent process of the calling process is executing a
+.I wait
+or is interested in the SIGCHLD signal,
+then it is notified of the calling process's termination and
+the low-order eight bits of \fIstatus\fP are made available to it;
+see
+.IR wait (2).
+.PP
+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 
+.IR intro (2))
+inherits each of these processes as well.
+.in -5n
+.PP
+Most C programs call the library routine
+.IR exit (3)
+which performs cleanup actions in the standard i/o library before
+calling \fI_exit\fP\|.
+.SH "RETURN VALUE"
+This call never returns.
+.SH "SEE ALSO"
+fork(2), wait(2), exit(3)