Run child process with null stdin/stdout
David Nadlinger via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Jun 18 13:15:40 PDT 2014
On Wednesday, 18 June 2014 at 20:00:43 UTC, Justin Whear wrote:
> For POSIX, seems like you could pass `File("/dev/null", "r")`
> for stdin
> and `File("/dev/null", "w")`. On Windows I believe you can use
> `File
> ("nul")` for the same effect.
Implementing this myself is of course always an option, yes, but
I would have liked to avoid platform-dependent code.
Hm, I just checked the source, and there doesn't seem to be a
better option indeed…
Thanks,
David
More information about the Digitalmars-d-learn
mailing list