rawRead from Pipe segfaults
kdevel
kdevel at vogtner.de
Thu Mar 18 11:37:41 UTC 2021
On Wednesday, 17 March 2021 at 23:08:07 UTC, kdevel wrote:
[...]
> How do I keep the pipe open?
Having the readEnd and writeEnd closed in the parent is usually
the right thing to to. spawnProcess closes the ends which is
documented:
| Note that if you pass a File object that is not one of the
standard
| input/output/error streams of the parent process, that stream
will
| by default be closed in the parent process when this function
returns.
| See the Config documentation below for information about how to
disable
| this behaviour. [1]
[1] https://dlang.org/phobos/std_process.html#spawnProcess
More information about the Digitalmars-d-learn
mailing list