From a50458777b937805f8e8467cc1c2dad6516bb027 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 11 Mar 2026 19:17:13 -0700 Subject: [PATCH] std.Io.Threaded: NtTerminateProcess can return PROCESS_IS_TERMINATING --- lib/std/Io/Threaded.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/Io/Threaded.zig b/lib/std/Io/Threaded.zig index 6cafee0389b3bf39ef7befe323ef98487682e32a..65ba1fbab05039e7a17c98d6968f6d929cc6b600 100644 --- a/lib/std/Io/Threaded.zig +++ b/lib/std/Io/Threaded.zig @@ -15321,7 +15321,7 @@ fn childKillWindows(t: *Threaded, child: *process.Child, exit_code: windows.UINT const handle = child.id.?; _ = windows.ntdll.RtlReportSilentProcessExit(handle, @enumFromInt(exit_code)); switch (windows.ntdll.NtTerminateProcess(handle, @enumFromInt(exit_code))) { - .SUCCESS => { + .SUCCESS, .PROCESS_IS_TERMINATING => { const infinite_timeout: windows.LARGE_INTEGER = std.math.minInt(windows.LARGE_INTEGER); _ = windows.ntdll.NtWaitForSingleObject(handle, windows.FALSE, &infinite_timeout); childCleanupWindows(child); -- 2.54.0