From bffe65c18f39db0f4ffe06c3f9abb12da4fbba88 Mon Sep 17 00:00:00 2001 From: Krzysztof Wolicki Date: Thu, 19 Oct 2023 00:59:10 +0200 Subject: [PATCH] std.ChildProcess: fix error in killWindows --- lib/std/child_process.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/child_process.zig b/lib/std/child_process.zig index f8cb1be221..b815d89f7a 100644 --- a/lib/std/child_process.zig +++ b/lib/std/child_process.zig @@ -228,7 +228,7 @@ pub const ChildProcess = struct { // some rare edge cases where our process handle no longer has the // PROCESS_TERMINATE access right, so let's do another check to make // sure the process is really no longer running: - windows.WaitForSingleObjectEx(self.handle, 0, false) catch return err; + windows.WaitForSingleObjectEx(self.id, 0, false) catch return err; return error.AlreadyTerminated; }, else => return err,