-
-
Notifications
You must be signed in to change notification settings - Fork 239
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
Sending SIGTERM doesn't instantly logout dwm #295
Comments
I tested out a patch from @nrk and seems to work as expected. The |
I managed to reproduce the issue in the end. I merged in the changes referred to in #276 (comment), but I specifically associated this with the restartsig patch. I also tried the IPC patch and the issue was not present there. |
Yeah, because the IPC patch is already relying on polling for getting the next X event. Would it not be better if we simply removed the blocking |
No, because that is not the way it is in upstream dwm. This is a bit of an extreme edge case where you shut down without pressing any buttons. If you don't have the restartsig patch then any kill signal will abruptly terminate the dwm process. |
Yeah, that makes sense. Anyways everything's working fine so I guess this issue can be closed. Just a minor nitpick: We don't actually need the |
I suppose you may be right. Did you test it without that if condition? I was thinking that there might be an edge case there where we have pending events that we'd want to skip when exiting. |
I did test it by logging out thrice and it worked as expected. I think it's better to remove the condition in upstream for now and I'll let you know if we face any issues in the future. |
It's not exactly redundant in case
In this case, with the check the loop will break out early. Without the check it will go on to process one more event and then the loop will exit on next iteration due to I think it's best to keep the check, though I cannot think of any realistic scenarios where it will have a noticeable impact (processing one more event shouldn't be that big of a deal). Overall, don't have any strong opinion or way or another. |
…akkeby#295 (cherry picked from commit 0f36ba5)
I use
rofi
to show me power options, hence I end up usingpkill -TERM dwm
to logout. However, what I've noticed is that dwm doesn't quit instantly. Instead, I have send an X event (switching workspace etc) and then it logs out.Fixing this would be a huge quality of usage improvement, especially for me.
This issue has also been discussed in #276 .
The text was updated successfully, but these errors were encountered: