authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-05-02 04:31:26-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-05-02 04:31:26-04:00
log9dac8a5be9f5e439ea857b22867aaf2dc5b70c62
tree4ff4f148b48a7bc32dc4171e336c0119defa14eb
parent6546c74825ec36cf6f065f1adb366073c00433ca

update windows impl of child process to new File API


1 files changed, 3 insertions(+), 12 deletions(-)

lib/std/child_process.zig+3-12
...@@ -675,26 +675,17 @@ pub const ChildProcess = struct {...@@ -675,26 +675,17 @@ pub const ChildProcess = struct {
675 };675 };
676676
677 if (g_hChildStd_IN_Wr) |h| {677 if (g_hChildStd_IN_Wr) |h| {
678 self.stdin = File{678 self.stdin = File{ .handle = h };
679 .handle = h,
680 .io_mode = io.mode,
681 };
682 } else {679 } else {
683 self.stdin = null;680 self.stdin = null;
684 }681 }
685 if (g_hChildStd_OUT_Rd) |h| {682 if (g_hChildStd_OUT_Rd) |h| {
686 self.stdout = File{683 self.stdout = File{ .handle = h };
687 .handle = h,
688 .io_mode = io.mode,
689 };
690 } else {684 } else {
691 self.stdout = null;685 self.stdout = null;
692 }686 }
693 if (g_hChildStd_ERR_Rd) |h| {687 if (g_hChildStd_ERR_Rd) |h| {
694 self.stderr = File{688 self.stderr = File{ .handle = h };
695 .handle = h,
696 .io_mode = io.mode,
697 };
698 } else {689 } else {
699 self.stderr = null;690 self.stderr = null;
700 }691 }