Blame SOURCES/0001-startx-Pass-keeptty-when-telling-the-server-to-start.patch

e61737
From c70ab1d87b4aec8f171615aa8dee4a1fc1104b4b Mon Sep 17 00:00:00 2001
e61737
From: Hans de Goede <hdegoede@redhat.com>
e61737
Date: Tue, 20 Jan 2015 16:18:34 +0100
e61737
Subject: [PATCH xinit] startx: Pass -keeptty when telling the server to start
e61737
 on the current tty
e61737
e61737
Detaching from the tty causes systemd-logind to refuse service to the xserver,
e61737
the xserver already tries to detect that it is being asked to run on the
e61737
current tty and then automatically enables -keeptty, but this code fails if
e61737
all of stdin, stdout and stderr are redirected to a file. So explicitly tell
e61737
the xserver to not detach when we're telling it to run on the current tty.
e61737
e61737
BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=1177513
e61737
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
e61737
---
e61737
 startx.cpp | 2 +-
e61737
 1 file changed, 1 insertion(+), 1 deletion(-)
e61737
e61737
diff --git a/startx.cpp b/startx.cpp
e61737
index 1c6fce0..45d7bd9 100644
e61737
--- a/startx.cpp
e61737
+++ b/startx.cpp
e61737
@@ -195,7 +195,7 @@ if [ x"$server" = x ]; then
e61737
     tty=$(tty)
e61737
     if expr match "$tty" '^/dev/tty[0-9]\+$' > /dev/null; then
e61737
         tty_num=$(echo "$tty" | grep -oE '[0-9]+$')
e61737
-        vtarg="vt$tty_num"
e61737
+        vtarg="vt$tty_num -keeptty"
e61737
     fi
e61737
 #endif
e61737
 
e61737
-- 
e61737
2.1.0
e61737