diff options
author | 2008-04-04 19:30:41 +0000 | |
---|---|---|
committer | 2008-04-04 19:30:41 +0000 | |
commit | cb2f56c4c83cf20c371119e9a0fbf1e9781a0ce3 (patch) | |
tree | 72be69d4579d6dc0c65f1bf43aed1881dc25fe03 /lib/libc/gen | |
parent | Zero out the password/response argument in the simplified BSD auth (diff) | |
download | wireguard-openbsd-cb2f56c4c83cf20c371119e9a0fbf1e9781a0ce3.tar.xz wireguard-openbsd-cb2f56c4c83cf20c371119e9a0fbf1e9781a0ce3.zip |
- do not call pthread_atfork(3) handlers when a multithreaded program
calls vfork(2). "untested, but looks OK" marc@
- document vfork(2), popen(3) and system(3) don't call atfork handlers
in multithreaded programs. okay jmc@
Diffstat (limited to 'lib/libc/gen')
-rw-r--r-- | lib/libc/gen/popen.3 | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/libc/gen/popen.3 b/lib/libc/gen/popen.3 index f3ce3b60ca4..df1a8759a6f 100644 --- a/lib/libc/gen/popen.3 +++ b/lib/libc/gen/popen.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: popen.3,v 1.15 2007/05/31 19:19:28 jmc Exp $ +.\" $OpenBSD: popen.3,v 1.16 2008/04/04 19:30:41 kurt Exp $ .\" .\" Copyright (c) 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -27,7 +27,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: April 4 2008 $ .Dt POPEN 3 .Os .Sh NAME @@ -94,6 +94,10 @@ the command's standard input is the same as that of the process that called Note that .Fn popen output streams are fully buffered by default. +In addition, fork handlers established using +.Xr pthread_atfork 3 +are not called when a multithreaded program calls +.Fn popen . .Pp The .Fn pclose |