From 7c3e28e482b0a8b7d093b7ed9e7b0a23b6b71df4 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sun, 17 Jan 2021 15:38:20 +0100 Subject: [PATCH] Add a note about unavoidable zombie processes This has to be fixed in Boost.Process --- src/plugin/host-process.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugin/host-process.cpp b/src/plugin/host-process.cpp index 243ab72d..c56d060c 100644 --- a/src/plugin/host-process.cpp +++ b/src/plugin/host-process.cpp @@ -128,6 +128,8 @@ bool IndividualHost::running() { void IndividualHost::terminate() { host.terminate(); + // NOTE: This leaves a zombie, because Boost.Process will actually not call + // `wait()` after we have terminated the process. host.wait(); }