chiark / gitweb /
xshutdown: Kill old-style xwait waiters too.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 7 Apr 2008 13:57:23 +0000 (14:57 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 7 Apr 2008 13:57:23 +0000 (14:57 +0100)
xshutdown

index 83963c8593bed6c52a8a5b0127f0ad7fe566c073..56c7c5a6a96ad54e6f74020fbd43829c6ccb1da6 100755 (executable)
--- a/xshutdown
+++ b/xshutdown
@@ -5,5 +5,8 @@ answer=$(xmsg -Q -t xshutdown -d "Really shutdown this session?" \
          "Terminating an X session prematurely can really ruin your day." \
          =yes:gtk-yes =no:default:cancel:gtk-no)
 case "$answer" in
-  yes) xatom set XINIT_COMMAND !break ;;
+  yes)
+    xatom set XINIT_COMMAND !break
+    xatom set XWAIT_DIE XWAIT_DIE_NOW
+    ;;
 esac