mirror of
https://github.com/swaywm/sway.git
synced 2024-11-29 03:11:27 +00:00
Revert "swaybar: Group child processes for signalling"
This reverts commit 8f4bc0a374
.
This commit is contained in:
parent
cb52454945
commit
bf1ef6089b
|
@ -41,7 +41,6 @@ static void spawn_status_cmd_proc(struct bar *bar) {
|
|||
close(pipefd[0]);
|
||||
dup2(pipefd[1], STDOUT_FILENO);
|
||||
close(pipefd[1]);
|
||||
setpgid(bar->status_command_pid, 0);
|
||||
char *const cmd[] = {
|
||||
"sh",
|
||||
"-c",
|
||||
|
@ -291,7 +290,7 @@ static void free_outputs(list_t *outputs) {
|
|||
static void terminate_status_command(pid_t pid) {
|
||||
if (pid) {
|
||||
// terminate status_command process
|
||||
int ret = killpg(pid, SIGTERM);
|
||||
int ret = kill(pid, SIGTERM);
|
||||
if (ret != 0) {
|
||||
sway_log(L_ERROR, "Unable to terminate status_command [pid: %d]", pid);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue