Flag options. Use bitwise OR to combine flags.
For backwards compatibility, and cases when only flags need to be specified in the Config, these allow building Config instances using flag names only.
Flag options. Use bitwise OR to combine flags.
For backwards compatibility, and cases when only flags need to be specified in the Config, these allow building Config instances using flag names only.
For backwards compatibility, and cases when only flags need to be specified in the Config, these allow building Config instances using flag names only.
A delegate that is called before exec in spawnProcess. It returns true if succeeded and otherwise returns false.
A function that is called before exec in spawnProcess. It returns true if succeeded and otherwise returns false.
For backwards compatibility, and cases when only flags need to be specified in the Config, these allow building Config instances using flag names only.
auto logFile = File("myapp_error.log", "w"); // Start program, suppressing the console window (Windows only), // redirect its error stream to logFile, and leave logFile open // in the parent process as well. auto pid = spawnProcess("myapp", stdin, stdout, logFile, Config.retainStderr | Config.suppressConsole); scope(exit) { auto exitCode = wait(pid); logFile.writeln("myapp exited with code ", exitCode); logFile.close(); }
Options that control the behaviour of process creation functions in this module. Most options only apply to spawnProcess and spawnShell.