[gdm/wip/fix-login-screan-reaping: 6/7] session-worker: don't kill progress group until PostSession is run



commit b606aed566880ea8561d69361c1766cb4f5540a4
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]