View source code
Display the source code in std/process.d from which this page was generated on
github.
Improve this page
Quickly fork, edit online, and submit a pull request for this page.
Requires a signed-in GitHub account. This works well for small changes.
If you'd like to make larger changes you may want to consider using
local clone.
Page wiki
View or edit the community-maintained wiki page associated with this page.
Enum std.process.member Config.inheritFDs
On POSIX, open file descriptors
are by default inherited by the child process. As this may lead
to subtle bugs when pipes or multiple threads are involved,
spawnProcess
ensures that all file descriptors except the
ones that correspond to standard input/output/error are closed
in the child process when it starts. Use
to prevent
this.
inheritFDs
On Windows, this option has no effect, and any handles which have been explicitly marked as inheritable will always be inherited by the child process.
Declaration
enum Config { // ... inheritFDs = 32, // ... }
Authors
Lars Tandle Kyllingstad, Steven Schveighoffer, Vladimir Panteleev