aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2017-06-29 13:22:54 -0400
committerLibravatar Drew DeVault <sir@cmpwn.com>2017-06-29 13:26:02 -0400
commitbf1ef6089b7529a56e6a724e570eb5aa2c342e23 (patch)
tree484f3ef0e879d2f7b174d1341020cbf61e2267b6
parentMerge pull request #1251 from Hummer12007/icons (diff)
downloadsway-bf1ef6089b7529a56e6a724e570eb5aa2c342e23.tar.gz
sway-bf1ef6089b7529a56e6a724e570eb5aa2c342e23.tar.zst
sway-bf1ef6089b7529a56e6a724e570eb5aa2c342e23.zip
Revert "swaybar: Group child processes for signalling"
-rw-r--r--swaybar/bar.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/swaybar/bar.c b/swaybar/bar.c
index 3412ff29..5e87eac9 100644
--- a/swaybar/bar.c
+++ b/swaybar/bar.c
@@ -41,7 +41,6 @@ static void spawn_status_cmd_proc(struct bar *bar) {
41 close(pipefd[0]); 41 close(pipefd[0]);
42 dup2(pipefd[1], STDOUT_FILENO); 42 dup2(pipefd[1], STDOUT_FILENO);
43 close(pipefd[1]); 43 close(pipefd[1]);
44 setpgid(bar->status_command_pid, 0);
45 char *const cmd[] = { 44 char *const cmd[] = {
46 "sh", 45 "sh",
47 "-c", 46 "-c",
@@ -291,7 +290,7 @@ static void free_outputs(list_t *outputs) {
291static void terminate_status_command(pid_t pid) { 290static void terminate_status_command(pid_t pid) {
292 if (pid) { 291 if (pid) {
293 // terminate status_command process 292 // terminate status_command process
294 int ret = killpg(pid, SIGTERM); 293 int ret = kill(pid, SIGTERM);
295 if (ret != 0) { 294 if (ret != 0) {
296 sway_log(L_ERROR, "Unable to terminate status_command [pid: %d]", pid); 295 sway_log(L_ERROR, "Unable to terminate status_command [pid: %d]", pid);
297 } else { 296 } else {