We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 120f608 commit 3d880abCopy full SHA for 3d880ab
src/native/windows.rs
@@ -11,7 +11,7 @@ pub(crate) fn kill_process(id: u32) -> Result<(), KillFailedError> {
11
12
unsafe {
13
let handle = OpenProcess(PROCESS_TERMINATE, 0, id);
14
- if handle == 0 {
+ if handle == 0 || handle == -1 {
15
return error;
16
}
17
if TerminateProcess(handle, 101) == 0 {
0 commit comments