summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/vfork.2
diff options
context:
space:
mode:
authormpp <mpp@FreeBSD.org>1996-02-15 20:07:05 +0000
committermpp <mpp@FreeBSD.org>1996-02-15 20:07:05 +0000
commitf153098d8fd4cf063b9c6a6a4cf4f3a4edcee28f (patch)
tree55211f7e40a855e1a91b33db2ababaca3644755a /lib/libc/sys/vfork.2
parent548ad36a132025c41ad4c095084ee9e822e281ef (diff)
downloadFreeBSD-src-f153098d8fd4cf063b9c6a6a4cf4f3a4edcee28f.zip
FreeBSD-src-f153098d8fd4cf063b9c6a6a4cf4f3a4edcee28f.tar.gz
Fixed a bunch of man page cross references that were
in the main text of various man pages. Thanks to Warner Losh for adding an option to manck to allow it to scan the entire man page looking for bogus xrefs, instead of just checking the SEE ALSO section.
Diffstat (limited to 'lib/libc/sys/vfork.2')
-rw-r--r--lib/libc/sys/vfork.224
1 files changed, 12 insertions, 12 deletions
diff --git a/lib/libc/sys/vfork.2 b/lib/libc/sys/vfork.2
index 8b6e077..b708bde 100644
--- a/lib/libc/sys/vfork.2
+++ b/lib/libc/sys/vfork.2
@@ -48,15 +48,15 @@ space of the old process, which is horrendously inefficient in a paged
environment. It is useful when the purpose of
.Xr fork 2
would have been to create a new system context for an
-.Xr execve .
+.Xr execve 2 .
.Fn Vfork
differs from
-.Xr fork
+.Xr fork 2
in that the child borrows the parent's memory and thread of
control until a call to
.Xr execve 2
or an exit (either by a call to
-.Xr exit 2
+.Xr exit 3
or abnormally.)
The parent process is suspended while the child is using its resources.
.Pp
@@ -74,19 +74,19 @@ since the eventual return from
.Fn vfork
would then return to a no longer existent stack frame.
Be careful, also, to call
-.Xr _exit
+.Xr _exit 2
rather than
-.Xr exit
+.Xr exit 3
if you can't
-.Xr execve ,
+.Xr execve 2 ,
since
-.Xr exit
+.Xr exit 3
will flush and close standard I/O channels, and thereby mess up the
parent processes standard I/O data structures.
(Even with
-.Xr fork
+.Xr fork 2
it is wrong to call
-.Xr exit
+.Xr exit 3
since buffered data would then be flushed twice.)
.Sh SEE ALSO
.Xr fork 2 ,
@@ -95,15 +95,15 @@ since buffered data would then be flushed twice.)
.Xr wait 2 ,
.Sh DIAGNOSTICS
Same as for
-.Xr fork .
+.Xr fork 2 .
.Sh BUGS
This system call will be eliminated when proper system sharing
mechanisms are implemented.
Users should not depend on the memory
sharing semantics of
-.Xr vfork
+.Xr vfork 2
as it will, in that case, be made synonymous to
-.Xr fork .
+.Xr fork 2 .
.Pp
To avoid a possible deadlock situation,
processes that are children in the middle
OpenPOWER on IntegriCloud