| ... | @@ -15347,8 +15347,7 @@ fn childKillWindows(t: *Threaded, child: *process.Child, exit_code: windows.UINT | ... | @@ -15347,8 +15347,7 @@ fn childKillWindows(t: *Threaded, child: *process.Child, exit_code: windows.UINT |
| 15347 | _ = windows.ntdll.RtlReportSilentProcessExit(handle, @fromBackingInt(@intCast(exit_code))); | 15347 | _ = windows.ntdll.RtlReportSilentProcessExit(handle, @fromBackingInt(@intCast(exit_code))); |
| 15348 | switch (windows.ntdll.NtTerminateProcess(handle, @fromBackingInt(@intCast(exit_code)))) { | 15348 | switch (windows.ntdll.NtTerminateProcess(handle, @fromBackingInt(@intCast(exit_code)))) { |
| 15349 | .SUCCESS, .PROCESS_IS_TERMINATING => { | 15349 | .SUCCESS, .PROCESS_IS_TERMINATING => { |
| 15350 | const infinite_timeout: windows.LARGE_INTEGER = std.math.minInt(windows.LARGE_INTEGER); | 15350 | _ = windows.ntdll.NtWaitForSingleObject(handle, .FALSE, null); |
| 15351 | _ = windows.ntdll.NtWaitForSingleObject(handle, .FALSE, &infinite_timeout); | | |
| 15352 | childCleanupWindows(child); | 15351 | childCleanupWindows(child); |
| 15353 | }, | 15352 | }, |
| 15354 | .ACCESS_DENIED => { | 15353 | .ACCESS_DENIED => { |
| ... | @@ -15371,8 +15370,7 @@ fn childWaitWindows(child: *process.Child) process.Child.WaitError!process.Child | ... | @@ -15371,8 +15370,7 @@ fn childWaitWindows(child: *process.Child) process.Child.WaitError!process.Child |
| 15371 | const handle = child.id.?; | 15370 | const handle = child.id.?; |
| 15372 | | 15371 | |
| 15373 | const alertable_syscall: AlertableSyscall = try .start(); | 15372 | const alertable_syscall: AlertableSyscall = try .start(); |
| 15374 | const infinite_timeout: windows.LARGE_INTEGER = std.math.minInt(windows.LARGE_INTEGER); | 15373 | while (true) switch (windows.ntdll.NtWaitForSingleObject(handle, .TRUE, null)) { |
| 15375 | while (true) switch (windows.ntdll.NtWaitForSingleObject(handle, .TRUE, &infinite_timeout)) { | | |
| 15376 | windows.NTSTATUS.WAIT_0 => break alertable_syscall.finish(), | 15374 | windows.NTSTATUS.WAIT_0 => break alertable_syscall.finish(), |
| 15377 | .USER_APC, .ALERTED, .TIMEOUT => { | 15375 | .USER_APC, .ALERTED, .TIMEOUT => { |
| 15378 | try alertable_syscall.checkCancel(); | 15376 | try alertable_syscall.checkCancel(); |