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; } }