Blame SOURCES/0005-kms-call-LeaveVT-on-shutdown.patch

ae4e7e
From 35f3ea239227157e97a63b2738be48bcc130c6c8 Mon Sep 17 00:00:00 2001
ae4e7e
From: Ray Strode <rstrode@redhat.com>
ae4e7e
Date: Wed, 3 Oct 2018 09:00:40 -0400
ae4e7e
Subject: [PATCH] kms: call LeaveVT on shutdown
ae4e7e
ae4e7e
It's important that LeaveVT is called on shutdown, since
ae4e7e
the X server will leave the current vt on shutdown.
ae4e7e
ae4e7e
This commit adds the required call, and fixes some confusion
ae4e7e
when one X server is starting at around the same time another
ae4e7e
X server is shutting down.
ae4e7e
ae4e7e
(cherry picked from commit 0f9e801c04f31b0b173ec22725d08122ecbfaea6)
ae4e7e
---
ae4e7e
 src/qxl_kms.c | 3 +++
ae4e7e
 1 file changed, 3 insertions(+)
ae4e7e
ae4e7e
diff --git a/src/qxl_kms.c b/src/qxl_kms.c
ae4e7e
index d11b20e..d098ebf 100644
ae4e7e
--- a/src/qxl_kms.c
ae4e7e
+++ b/src/qxl_kms.c
ae4e7e
@@ -132,6 +132,9 @@ qxl_close_screen_kms (CLOSE_SCREEN_ARGS_DECL)
ae4e7e
 
ae4e7e
     result = pScreen->CloseScreen (CLOSE_SCREEN_ARGS);
ae4e7e
 
ae4e7e
+    if (pScrn->vtSema)
ae4e7e
+	pScrn->LeaveVT (VT_FUNC_ARGS);
ae4e7e
+
ae4e7e
     return result;
ae4e7e
 }
ae4e7e
 
ae4e7e
-- 
ae4e7e
2.20.1
ae4e7e