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.
This commit is contained in:
parent
11adc0d65e
commit
41a3e3b022
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user