woofCE wmexit can hang

Please post any bugs you have found
Post Reply
Message
Author
williams2
Posts: 337
Joined: Fri 14 Dec 2018, 22:18

woofCE wmexit can hang

#1 Post by williams2 »

/etc/windowmanager may not point to the process that wmexit needs to kill, and wmexit can fail to stop the wm. Puppy will hang and not stop Xwindows.

This will happen if the wm is started from a script (some wms start from a script by default, I think xmonad does.) It will happen if the wm is switched to another wm. Some wms have that capability.

If the wm is jwm or icewm or openbox, wmexit will explicitly kill them anyway, but that is a workaround. In situations like starting from a script, it is impossible for wmexit to know what it needs to kill. Therefore, to shutdown reliably, it needs to then try to kill X.

This should work. Replace this:

Code: Select all

for i in xfce4-panel lxsession lxqt-session `cat /etc/windowmanager` jwm icewm openbox
with this:

Code: Select all

for i in xfce4-panel lxsession lxqt-session `cat /etc/windowmanager` jwm icewm openbox X Xorg
or put killall -q X Xorg at the bottom of wmexit.

wmexit can not always know what needs to be killed.

from here pointed out by MochiMoppel.

Post Reply