forked from extern/nushell
Merge pull request #559 from jonathandturner/zombie_killing
Another attempt to fix the zombie processes
This commit is contained in:
commit
2d8b558ac0
@ -93,6 +93,8 @@ fn load_plugin(path: &std::path::Path, context: &mut Context) -> Result<(), Shel
|
|||||||
Err(e) => Err(ShellError::string(format!("Error: {:?}", e))),
|
Err(e) => Err(ShellError::string(format!("Error: {:?}", e))),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
let _ = child.wait();
|
||||||
|
|
||||||
result
|
result
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -207,6 +207,8 @@ pub fn filter_plugin(
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
let _ = child.wait();
|
||||||
|
|
||||||
result
|
result
|
||||||
}
|
}
|
||||||
_ => {
|
_ => {
|
||||||
|
Loading…
Reference in New Issue
Block a user