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

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