import std.process.Config properly

This commit is contained in:
Boris Carvajal 2021-02-22 05:45:10 -03:00
parent edf9eda3ef
commit b5db7d333c
No known key found for this signature in database
GPG key ID: 6517FFB444EB6201

View file

@ -64,7 +64,7 @@ final class PosixEventDriverProcesses(Loop : PosixEventLoop) : EventDriverProces
string working_dir) string working_dir)
@trusted { @trusted {
// Use std.process to spawn processes // Use std.process to spawn processes
import std.process : pipe, Pid, spawnProcess; import std.process : pipe, Pid, spawnProcess, StdProcessConfig = Config;
import std.stdio : File; import std.stdio : File;
static import std.stdio; static import std.stdio;
@ -141,7 +141,7 @@ final class PosixEventDriverProcesses(Loop : PosixEventLoop) : EventDriverProces
stdoutFile, stdoutFile,
stderrFile, stderrFile,
env, env,
cast(std.process.Config)config, cast(StdProcessConfig)config,
working_dir); working_dir);
process.pid = adopt(stdPid.osHandle); process.pid = adopt(stdPid.osHandle);
stdPid.destroy(); stdPid.destroy();