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

Reply via email to