diff options
author | 2017-06-12 23:01:19 +0300 | |
---|---|---|
committer | 2017-06-12 23:12:31 +0300 | |
commit | 8f4bc0a3741b63c64bb6059bb632e7584c595d14 (patch) | |
tree | ff1595433f3082b77637b0ba3450e7a2e77ac7f7 /swaygrab | |
parent | Merge pull request #1235 from vaartis/patch-1 (diff) | |
download | sway-8f4bc0a3741b63c64bb6059bb632e7584c595d14.tar.gz sway-8f4bc0a3741b63c64bb6059bb632e7584c595d14.tar.zst sway-8f4bc0a3741b63c64bb6059bb632e7584c595d14.zip |
swaybar: Group child processes for signalling
Fixes child proccess killing, when status_command is a complex command
like "i3status | wrapper.sh".
Set the process group id of the child process by calling `setpgid` after
forking and before calling `exec`.
The process group ID will be set to the process ID of the forked
process. Processes spawned by this child process will also have this
group ID.
Send signals to the process group with `killpg`. This will send the
signal to all of the process group.
Diffstat (limited to 'swaygrab')
0 files changed, 0 insertions, 0 deletions