| ... | @@ -661,8 +661,8 @@ pub const ChildProcess = struct { | ... | @@ -661,8 +661,8 @@ pub const ChildProcess = struct { |
| 661 | const nul_handle = if (any_ignore) | 661 | const nul_handle = if (any_ignore) |
| 662 | // "\Device\Null" or "\??\NUL" | 662 | // "\Device\Null" or "\??\NUL" |
| 663 | windows.OpenFile(&[_]u16{ '\\', 'D', 'e', 'v', 'i', 'c', 'e', '\\', 'N', 'u', 'l', 'l' }, .{ | 663 | windows.OpenFile(&[_]u16{ '\\', 'D', 'e', 'v', 'i', 'c', 'e', '\\', 'N', 'u', 'l', 'l' }, .{ |
| 664 | .access_mask = windows.GENERIC_READ | windows.SYNCHRONIZE, | 664 | .access_mask = windows.GENERIC_READ | windows.GENERIC_WRITE | windows.SYNCHRONIZE, |
| 665 | .share_access = windows.FILE_SHARE_READ, | 665 | .share_access = windows.FILE_SHARE_READ | windows.FILE_SHARE_WRITE, |
| 666 | .creation = windows.OPEN_EXISTING, | 666 | .creation = windows.OPEN_EXISTING, |
| 667 | .io_mode = .blocking, | 667 | .io_mode = .blocking, |
| 668 | }) catch |err| switch (err) { | 668 | }) catch |err| switch (err) { |
| ... | @@ -681,7 +681,7 @@ pub const ChildProcess = struct { | ... | @@ -681,7 +681,7 @@ pub const ChildProcess = struct { |
| 681 | if (any_ignore) os.close(nul_handle); | 681 | if (any_ignore) os.close(nul_handle); |
| 682 | } | 682 | } |
| 683 | if (any_ignore) { | 683 | if (any_ignore) { |
| 684 | try windows.SetHandleInformation(nul_handle, windows.HANDLE_FLAG_INHERIT, 0); | 684 | try windows.SetHandleInformation(nul_handle, windows.HANDLE_FLAG_INHERIT, windows.HANDLE_FLAG_INHERIT); |
| 685 | } | 685 | } |
| 686 | | 686 | |
| 687 | var g_hChildStd_IN_Rd: ?windows.HANDLE = null; | 687 | var g_hChildStd_IN_Rd: ?windows.HANDLE = null; |