commit 9dac8a5be9f5e439ea857b22867aaf2dc5b70c62 (tree)
parent 6546c74825ec36cf6f065f1adb366073c00433ca
Author: Andrew Kelley <andrew@ziglang.org>
Date: Sat, 2 May 2020 04:31:26 -0400
update windows impl of child process to new File API
Diffstat:
1 file changed, 3 insertions(+), 12 deletions(-)
diff --git a/lib/std/child_process.zig b/lib/std/child_process.zig
@@ -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;
}