| ... | @@ -485,8 +485,8 @@ pub const ChildProcess = struct { | ... | @@ -485,8 +485,8 @@ pub const ChildProcess = struct { |
| 485 | const any_ignore = (self.stdin_behavior == StdIo.Ignore or self.stdout_behavior == StdIo.Ignore or self.stderr_behavior == StdIo.Ignore); | 485 | const any_ignore = (self.stdin_behavior == StdIo.Ignore or self.stdout_behavior == StdIo.Ignore or self.stderr_behavior == StdIo.Ignore); |
| 486 | | 486 | |
| 487 | const nul_handle = if (any_ignore) | 487 | const nul_handle = if (any_ignore) |
| 488 | windows.OpenFile(&[_]u16{ 'N', 'U', 'L' }, .{ | 488 | // "\Device\Null" or "\??\NUL" |
| 489 | .dir = std.fs.cwd().fd, | 489 | windows.OpenFile(&[_]u16{ '\\', 'D', 'e', 'v', 'i', 'c', 'e', '\\', 'N', 'u', 'l', 'l' }, .{ |
| 490 | .access_mask = windows.GENERIC_READ | windows.SYNCHRONIZE, | 490 | .access_mask = windows.GENERIC_READ | windows.SYNCHRONIZE, |
| 491 | .share_access = windows.FILE_SHARE_READ, | 491 | .share_access = windows.FILE_SHARE_READ, |
| 492 | .creation = windows.OPEN_EXISTING, | 492 | .creation = windows.OPEN_EXISTING, |