[gdm/wip/fix-login-screan-reaping: 2/3] session-worker: don't kill progress group until PostSession is run
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm/wip/fix-login-screan-reaping: 2/3] session-worker: don't kill progress group until PostSession is run
- Date: Wed, 4 Sep 2019 15:06:36 +0000 (UTC)
commit 113d27de1f343d4292580d9f46d3c385c12e7acb
Author: Ray Strode <rstrode redhat com>
Date: Thu Aug 29 09:34:04 2019 -0400
session-worker: don't kill progress group until PostSession is run
Killing the process group leads to the worker getting killed, so
the PostSession never gets run.
This commit fixes that, by deferring killing the process group
until after PostSession has run.
daemon/gdm-session-worker.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/daemon/gdm-session-worker.c b/daemon/gdm-session-worker.c
index 0e854158..9bdee361 100644
--- a/daemon/gdm-session-worker.c
+++ b/daemon/gdm-session-worker.c
@@ -1820,11 +1820,11 @@ session_worker_child_watch (GPid pid,
worker->priv->service,
status);
- killpg (pid, SIGHUP);
-
worker->priv->child_pid = -1;
worker->priv->child_watch_id = 0;
run_script (worker, GDMCONFDIR "/PostSession");
+
+ killpg (pid, SIGHUP);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]