| ... | @@ -228,7 +228,7 @@ pub const ChildProcess = struct { | ... | @@ -228,7 +228,7 @@ pub const ChildProcess = struct { |
| 228 | // some rare edge cases where our process handle no longer has the | 228 | // some rare edge cases where our process handle no longer has the |
| 229 | // PROCESS_TERMINATE access right, so let's do another check to make | 229 | // PROCESS_TERMINATE access right, so let's do another check to make |
| 230 | // sure the process is really no longer running: | 230 | // sure the process is really no longer running: |
| 231 | windows.WaitForSingleObjectEx(self.handle, 0, false) catch return err; | 231 | windows.WaitForSingleObjectEx(self.id, 0, false) catch return err; |
| 232 | return error.AlreadyTerminated; | 232 | return error.AlreadyTerminated; |
| 233 | }, | 233 | }, |
| 234 | else => return err, | 234 | else => return err, |