summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>1999-09-22 22:04:00 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>1999-09-22 22:04:00 +0000
commit2507a57737f0b8fcc2e246e067617e2fb0e585bc (patch)
treece9e38b19d88fc285eb341789237af6f72d63f1c /lib/libc
parent4b99f18f85b38aed824c2c69375488719d047b4d (diff)
Some misc fixes, one from fgsch@
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/_exit.215
1 files changed, 9 insertions, 6 deletions
diff --git a/lib/libc/sys/_exit.2 b/lib/libc/sys/_exit.2
index 77d6015572d..a59cf5f27d2 100644
--- a/lib/libc/sys/_exit.2
+++ b/lib/libc/sys/_exit.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: _exit.2,v 1.8 1999/08/31 16:52:35 aaron Exp $
+.\" $OpenBSD: _exit.2,v 1.9 1999/09/22 22:03:59 aaron Exp $
.\" $NetBSD: _exit.2,v 1.6 1995/02/27 12:31:34 cgd Exp $
.\"
.\" Copyright (c) 1980, 1993
@@ -35,7 +35,7 @@
.\" @(#)_exit.2 8.1 (Berkeley) 6/4/93
.\"
.Dd June 4, 1993
-.Dt EXIT 2
+.Dt _EXIT 2
.Os
.Sh NAME
.Nm _exit
@@ -51,7 +51,7 @@ function
terminates a process with the following consequences:
.Bl -bullet
.It
-All of the descriptors open in the calling process are closed.
+All open file descriptors in the calling process are closed.
This may entail delays; for example, waiting for output to drain.
A process in this state may not be killed, as it is already dying.
.It
@@ -68,14 +68,16 @@ is set as defined by
.It
The parent process ID of all of the calling process's existing child
processes are set to 1; the initialization process
-(see the DEFINITIONS section of
+(see the
+.Sx DEFINITIONS
+section of
.Xr intro 2 )
inherits each of these processes.
.It
If the termination of the process causes any process group
to become orphaned (usually because the parents of all members
-of the group have now exited, see
-.Dq Orphaned Process Group
+of the group have now exited; see
+.Sx Orphaned Process Group
in
.Xr intro 2 ) ,
and if any member of the orphaned group is stopped,
@@ -103,6 +105,7 @@ and then calls
can never return.
.Sh SEE ALSO
.Xr fork 2 ,
+.Xr intro 2 ,
.Xr sigaction 2 ,
.Xr wait 2 ,
.Xr exit 3