feat: debug cmd

This commit is contained in:
Alex
2020-05-22 20:57:41 +02:00
parent b251c51936
commit 6b32aca094
2 changed files with 16 additions and 12 deletions

View File

@ -16,7 +16,7 @@ waybar::modules::Custom::Custom(const std::string& name, const std::string& id,
waybar::modules::Custom::~Custom() {
if (pid_ != -1) {
kill(-pid_, 9);
killpg(pid_, SIGTERM);
pid_ = -1;
}
}