Blame SOURCES/kde-workspace-4.8.0-bug796969.patch

652846
per https://bugzilla.redhat.com/show_bug.cgi?id=796969#c23
652846
The process that executes kdm/backend/session.c:manageSession() is the leader
652846
process of the logind session.
652846
652846
manageSession() calls:
652846
652846
    blockTerm();
652846
    clientExited();
652846
    unblockTerm();
652846
652846
where clientExited() ends the PAM session.
652846
With the current systemd-logind, ending the PAM session will cause the leader
652846
process to be delivered SIGHUP and SIGTERM. The process will die and the
652846
remainder of manageSession() will not be executed.
652846
652846
Interestingly, at the end of the function there's a call to sessionExit(),
652846
which calls clientExited() again.
652846
652846
Removing the three lines quoted above makes reboot from KDE work again. I
652846
haven't noticed any bad effects.
652846
652846
diff -up kde-workspace-4.8.0/kdm/backend/session.c.bz796969 kde-workspace-4.8.0/kdm/backend/session.c
652846
--- kde-workspace-4.8.0/kdm/backend/session.c.bz796969	2012-01-18 14:08:40.000000000 -0600
652846
+++ kde-workspace-4.8.0/kdm/backend/session.c	2012-02-28 07:17:16.270219932 -0600
652846
@@ -662,9 +662,9 @@ manageSession(void)
652846
         sessionExit(EX_AL_RESERVER_DPY);
652846
     }
652846
 
652846
-    blockTerm();
652846
-    clientExited();
652846
-    unblockTerm();
652846
+    /* blockTerm(); */
652846
+    /* clientExited(); */
652846
+    /* unblockTerm(); */
652846
 
652846
     gSet(&mstrtalk);
652846
     gSendInt(D_UnUser);