From 7d46f9e860112ed86bddf03fc4260c0c00dfea9a Mon Sep 17 00:00:00 2001 From: Jonathan Turner Date: Mon, 2 Sep 2019 04:45:30 +1200 Subject: [PATCH] Another attempt to fix the zombie processes --- src/cli.rs | 2 ++ src/commands/plugin.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/cli.rs b/src/cli.rs index 949c7a359f..34a208e08c 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -93,6 +93,8 @@ fn load_plugin(path: &std::path::Path, context: &mut Context) -> Result<(), Shel Err(e) => Err(ShellError::string(format!("Error: {:?}", e))), }; + let _ = child.wait(); + result } diff --git a/src/commands/plugin.rs b/src/commands/plugin.rs index a14cb1a609..2cd63c0c98 100644 --- a/src/commands/plugin.rs +++ b/src/commands/plugin.rs @@ -207,6 +207,8 @@ pub fn filter_plugin( } }; + let _ = child.wait(); + result } _ => {