Sophie

Sophie

distrib > Mageia > 5 > x86_64 > by-pkgid > e520a3e525c7292a95b037466e21c9e6 > files > 4

gdm-3.14.2-5.1.mga5.src.rpm

From 22aa5d9d6ceffe4983b7b0ccd2ef193954f13808 Mon Sep 17 00:00:00 2001
From: Ray Strode <rstrode@redhat.com>
Date: Mon, 30 Mar 2015 21:53:08 -0400
Subject: [PATCH 4/4] =?UTF-8?q?systemd:=20change=20to=20KillMode=3Dprocess?=
 =?UTF-8?q?=E2=80=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

By default systemd will kill the entire control-group in one fell
swoop. The problem is, things don't get shutdown in the right
order then, and there's a race where GDM will begin restarting
X servers as soon as they're killed.

This commit tells systemd to just kill the main GDM process, and
let it handle killing all its children on its own.

https://bugzilla.gnome.org/show_bug.cgi?id=747088
---
 data/gdm.service.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/data/gdm.service.in b/data/gdm.service.in
index 9090cf4..fbcd7d0 100644
--- a/data/gdm.service.in
+++ b/data/gdm.service.in
@@ -21,6 +21,7 @@ OnFailure=plymouth-quit.service
 
 [Service]
 ExecStart=@sbindir@/gdm
+KillMode=process
 Restart=always
 IgnoreSIGPIPE=no
 BusName=org.gnome.DisplayManager
-- 
2.3.1