| ... | @@ -675,26 +675,17 @@ pub const ChildProcess = struct { | ... | @@ -675,26 +675,17 @@ pub const ChildProcess = struct { |
| 675 | }; | 675 | }; |
| 676 | | 676 | |
| 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 | } |