diff options
author | 2014-09-07 20:18:16 +0000 | |
---|---|---|
committer | 2014-09-07 20:18:16 +0000 | |
commit | 20e63583a139b001cc63d6485d05e3ba2058573e (patch) | |
tree | 48c9ef01a1cf8a657f6fe1cf0abf2efa2a27f2b8 /lib/libc/sys | |
parent | Reuse xtrfile() to avoid duplication. (diff) | |
download | wireguard-openbsd-20e63583a139b001cc63d6485d05e3ba2058573e.tar.xz wireguard-openbsd-20e63583a139b001cc63d6485d05e3ba2058573e.zip |
Document that 4.4BSD changed the semantics but that others have restored
the original ones
ok jmc@
Diffstat (limited to 'lib/libc/sys')
-rw-r--r-- | lib/libc/sys/vfork.2 | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/lib/libc/sys/vfork.2 b/lib/libc/sys/vfork.2 index 6eaa56aedf7..c0b45c1d014 100644 --- a/lib/libc/sys/vfork.2 +++ b/lib/libc/sys/vfork.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: vfork.2,v 1.17 2008/04/24 20:43:20 kurt Exp $ +.\" $OpenBSD: vfork.2,v 1.18 2014/09/07 20:18:16 guenther Exp $ .\" $NetBSD: vfork.2,v 1.8 1997/07/10 07:54:13 mikel Exp $ .\" .\" Copyright (c) 1980, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)vfork.2 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: April 24 2008 $ +.Dd $Mdocdate: September 7 2014 $ .Dt VFORK 2 .Os .Sh NAME @@ -82,7 +82,18 @@ Same as for The .Fn vfork function call appeared in -.Bx 2.9 . +.Bx 2.9 +with the additional semantics that the child process ran in the +memory of the parent until it called +.Xr execve 2 +or exited. +That sharing of memory was removed in +.Bx 4.4 , +leaving just the semantics of blocking the parent until the child calls +.Xr execve 2 +or exits. +On many other systems the original behavior has been restored, +making this interface particularly unportable. .Sh BUGS To avoid a possible deadlock situation, processes that are children in the middle of a |