diff options
author | jkoshy <jkoshy@FreeBSD.org> | 1998-11-06 07:09:22 +0000 |
---|---|---|
committer | jkoshy <jkoshy@FreeBSD.org> | 1998-11-06 07:09:22 +0000 |
commit | 27b8931a468a2cd7edb626e2ad0f703520996c32 (patch) | |
tree | 6610d5a0e20b346a6e3af346ef8c34a0e42b8e09 /lib/libc/gen/popen.3 | |
parent | f867ac1646f618924298c4ad417ffb8f7b315ad4 (diff) | |
download | FreeBSD-src-27b8931a468a2cd7edb626e2ad0f703520996c32.zip FreeBSD-src-27b8931a468a2cd7edb626e2ad0f703520996c32.tar.gz |
Update manual page to reflect changes in rev 1.12 of
"src/lib/libc/gen/popen.c" --- popen() in the child
now closes any copies of popen()'ed descriptors in the parent.
Diffstat (limited to 'lib/libc/gen/popen.3')
-rw-r--r-- | lib/libc/gen/popen.3 | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/libc/gen/popen.3 b/lib/libc/gen/popen.3 index c4278e5..b22a57e 100644 --- a/lib/libc/gen/popen.3 +++ b/lib/libc/gen/popen.3 @@ -53,16 +53,19 @@ function a process by creating a bidirectional pipe forking, and invoking the shell. +Any streams opened by previous +.Fn popen +calls in the parent process are closed in the new child process. Historically, -.Nm popen +.Fn popen was implemented with a unidirectional pipe; hence many implementations of -.Nm popen +.Fn popen only allow the .Fa type argument to specify reading or writing, not both. Since -.Nm popen +.Nm is now implemented using a bidirectional pipe, the .Fa type argument may request a bidirectional data flow. |