From 31137c30fbe66edef631ebac400e4d37ac24ead8 Mon Sep 17 00:00:00 2001 From: lilydjwg Date: Thu, 27 Oct 2022 18:12:14 +0800 Subject: [PATCH] fix custom module leaves zombie processes behind when bars are removed fixes #1713. --- src/modules/custom.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/custom.cpp b/src/modules/custom.cpp index 1a64d2a..184c265 100644 --- a/src/modules/custom.cpp +++ b/src/modules/custom.cpp @@ -21,6 +21,7 @@ waybar::modules::Custom::Custom(const std::string& name, const std::string& id, waybar::modules::Custom::~Custom() { if (pid_ != -1) { killpg(pid_, SIGTERM); + waitpid(pid_, NULL, 0); pid_ = -1; } }