diff --git a/lib/std/child_process.zig b/lib/std/child_process.zig index f8cb1be2214d091127be3c2a1e0e7eb0566dcc9a..b815d89f7a068c1f3743491edc7e8e8eecaa25b8 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,