authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-03-11 19:17:13-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-03-12 15:40:59-07:00
loga50458777b937805f8e8467cc1c2dad6516bb027
tree1fb2341b04fa915949edfa4b998c9d53578e8ec5
parent8973c8a8262581be9fd0166b86966b086e5f4a6b

std.Io.Threaded: NtTerminateProcess can return PROCESS_IS_TERMINATING


1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/Io/Threaded.zig+1-1
...@@ -15321,7 +15321,7 @@ fn childKillWindows(t: *Threaded, child: *process.Child, exit_code: windows.UINT...@@ -15321,7 +15321,7 @@ fn childKillWindows(t: *Threaded, child: *process.Child, exit_code: windows.UINT
15321 const handle = child.id.?;15321 const handle = child.id.?;
15322 _ = windows.ntdll.RtlReportSilentProcessExit(handle, @enumFromInt(exit_code));15322 _ = windows.ntdll.RtlReportSilentProcessExit(handle, @enumFromInt(exit_code));
15323 switch (windows.ntdll.NtTerminateProcess(handle, @enumFromInt(exit_code))) {15323 switch (windows.ntdll.NtTerminateProcess(handle, @enumFromInt(exit_code))) {
15324 .SUCCESS => {15324 .SUCCESS, .PROCESS_IS_TERMINATING => {
15325 const infinite_timeout: windows.LARGE_INTEGER = std.math.minInt(windows.LARGE_INTEGER);15325 const infinite_timeout: windows.LARGE_INTEGER = std.math.minInt(windows.LARGE_INTEGER);
15326 _ = windows.ntdll.NtWaitForSingleObject(handle, windows.FALSE, &infinite_timeout);15326 _ = windows.ntdll.NtWaitForSingleObject(handle, windows.FALSE, &infinite_timeout);
15327 childCleanupWindows(child);15327 childCleanupWindows(child);