Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

swaybar: Group child processes for signalling #1236

Merged
merged 1 commit into from
Jun 12, 2017

Conversation

ykrivopalov
Copy link
Contributor

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.

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.
@ddevault ddevault merged commit 16e20ec into swaywm:master Jun 12, 2017
@ddevault
Copy link
Contributor

Thanks!

@ykrivopalov ykrivopalov deleted the fix_complex_status_command branch June 13, 2017 05:52
@ddevault ddevault mentioned this pull request Jun 15, 2017
@ddevault
Copy link
Contributor

I have reverted this and it's not going to land in 0.14 unless you get it fixed within the next week. It was the cause of #1253

@ddevault
Copy link
Contributor

It's not immediately apparent to me how this caused #1253, but there's enough information there to reproduce it so we'll see.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants