| author | |
| committer | |
| log | 12dc2f261166fe901ed955a1e87fcf292e3b1b86 |
| tree | 5f8ed6ba6d694ded540865660b850175f8dd6f0e |
| parent | 833105128485bf84a22f26506eb5e7b9bfa146a0 |
fixes #319543 files changed, 4 insertions(+), 8 deletions(-)
lib/std/Io/Threaded.zig+2-4| ... | ... | @@ -15347,8 +15347,7 @@ fn childKillWindows(t: *Threaded, child: *process.Child, exit_code: windows.UINT |
| 15347 | 15347 | _ = windows.ntdll.RtlReportSilentProcessExit(handle, @fromBackingInt(@intCast(exit_code))); |
| 15348 | 15348 | switch (windows.ntdll.NtTerminateProcess(handle, @fromBackingInt(@intCast(exit_code)))) { |
| 15349 | 15349 | .SUCCESS, .PROCESS_IS_TERMINATING => { |
| 15350 | const infinite_timeout: windows.LARGE_INTEGER = std.math.minInt(windows.LARGE_INTEGER); | |
| 15351 | _ = windows.ntdll.NtWaitForSingleObject(handle, .FALSE, &infinite_timeout); | |
| 15350 | _ = windows.ntdll.NtWaitForSingleObject(handle, .FALSE, null); | |
| 15352 | 15351 | childCleanupWindows(child); |
| 15353 | 15352 | }, |
| 15354 | 15353 | .ACCESS_DENIED => { |
| ... | ... | @@ -15371,8 +15370,7 @@ fn childWaitWindows(child: *process.Child) process.Child.WaitError!process.Child |
| 15371 | 15370 | const handle = child.id.?; |
| 15372 | 15371 | |
| 15373 | 15372 | const alertable_syscall: AlertableSyscall = try .start(); |
| 15374 | const infinite_timeout: windows.LARGE_INTEGER = std.math.minInt(windows.LARGE_INTEGER); | |
| 15375 | while (true) switch (windows.ntdll.NtWaitForSingleObject(handle, .TRUE, &infinite_timeout)) { | |
| 15373 | while (true) switch (windows.ntdll.NtWaitForSingleObject(handle, .TRUE, null)) { | |
| 15376 | 15374 | windows.NTSTATUS.WAIT_0 => break alertable_syscall.finish(), |
| 15377 | 15375 | .USER_APC, .ALERTED, .TIMEOUT => { |
| 15378 | 15376 | try alertable_syscall.checkCancel(); |
lib/std/Thread.zig+1-2| ... | ... | @@ -639,8 +639,7 @@ const WindowsThreadImpl = struct { |
| 639 | 639 | } |
| 640 | 640 | |
| 641 | 641 | fn join(self: Impl) void { |
| 642 | const infinite_timeout: windows.LARGE_INTEGER = std.math.minInt(windows.LARGE_INTEGER); | |
| 643 | switch (windows.ntdll.NtWaitForSingleObject(self.thread.thread_handle, .FALSE, &infinite_timeout)) { | |
| 642 | switch (windows.ntdll.NtWaitForSingleObject(self.thread.thread_handle, .FALSE, null)) { | |
| 644 | 643 | windows.NTSTATUS.WAIT_0 => {}, |
| 645 | 644 | else => |status| windows.unexpectedStatus(status) catch unreachable, |
| 646 | 645 | } |
test/standalone/windows_argv/fuzz.zig+1-2| ... | ... | @@ -147,8 +147,7 @@ fn spawnVerify(verify_path: [:0]const u16, cmd_line: [:0]const u16) !windows.DWO |
| 147 | 147 | break :spawn proc_info.hProcess; |
| 148 | 148 | }; |
| 149 | 149 | defer windows.CloseHandle(child_proc); |
| 150 | const infinite_timeout: windows.LARGE_INTEGER = std.math.minInt(windows.LARGE_INTEGER); | |
| 151 | switch (windows.ntdll.NtWaitForSingleObject(child_proc, .FALSE, &infinite_timeout)) { | |
| 150 | switch (windows.ntdll.NtWaitForSingleObject(child_proc, .FALSE, null)) { | |
| 152 | 151 | windows.NTSTATUS.WAIT_0 => {}, |
| 153 | 152 | .TIMEOUT => return error.WaitTimeOut, |
| 154 | 153 | else => |status| return windows.unexpectedStatus(status), |