summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2023-01-17 17:31:29 +0100
committerSimon Rettberg2023-01-17 17:31:29 +0100
commit8e5f2d50d50fd8b30a4b0ea3596374262d8c7d9f (patch)
treec040da83800ed7fce48a79d64773287cc8308068
parent[vmware-common] Allow undocumented hwversion 20 for VMware 17.x (diff)
downloadmltk-8e5f2d50d50fd8b30a4b0ea3596374262d8c7d9f.tar.gz
mltk-8e5f2d50d50fd8b30a4b0ea3596374262d8c7d9f.tar.xz
mltk-8e5f2d50d50fd8b30a4b0ea3596374262d8c7d9f.zip
[xorg] Add logout hang bug workaround
-rw-r--r--core/modules/xorg/data/etc/X11/Xreset.d/zzz-kill-xorg7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/modules/xorg/data/etc/X11/Xreset.d/zzz-kill-xorg b/core/modules/xorg/data/etc/X11/Xreset.d/zzz-kill-xorg
new file mode 100644
index 00000000..7416cfa7
--- /dev/null
+++ b/core/modules/xorg/data/etc/X11/Xreset.d/zzz-kill-xorg
@@ -0,0 +1,7 @@
+# Sometimes, maybe 1 out of 20 times, ligtdm will register
+# a session ending, call Xreset, and then.... The xserver
+# will not exit and hang around.
+# No clue why, no motivation to debug, but add this workaround
+# for now. This was observed with bot, Ubuntu 20.04 and Debian 12.
+
+lsof -n "/tmp/.X11-unix/X${DISPLAY#:}" | awk '$1 == "Xorg" {print $2}' | xargs kill