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

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