mirror of
https://github.com/ziglang/zig.git
synced 2025-12-25 23:53:15 +00:00
std.ChildProcess: fix error in killWindows
This commit is contained in:
parent
63f9af87d3
commit
bffe65c18f
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user