update windows impl of child process to new File API

This commit is contained in:
Andrew Kelley 2020-05-02 04:31:26 -04:00
parent 6546c74825
commit 9dac8a5be9

View File

@ -675,26 +675,17 @@ pub const ChildProcess = struct {
};
if (g_hChildStd_IN_Wr) |h| {
self.stdin = File{
.handle = h,
.io_mode = io.mode,
};
self.stdin = File{ .handle = h };
} else {
self.stdin = null;
}
if (g_hChildStd_OUT_Rd) |h| {
self.stdout = File{
.handle = h,
.io_mode = io.mode,
};
self.stdout = File{ .handle = h };
} else {
self.stdout = null;
}
if (g_hChildStd_ERR_Rd) |h| {
self.stderr = File{
.handle = h,
.io_mode = io.mode,
};
self.stderr = File{ .handle = h };
} else {
self.stderr = null;
}