[gdm] worker: kill process group when session exits
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm] worker: kill process group when session exits
- Date: Thu, 15 Dec 2016 19:56:34 +0000 (UTC)
commit 3d3b47b6d69fd1551c66468c379dc0e95c2e7dc4
Author: Ray Strode <rstrode redhat com>
Date: Wed Jul 20 11:43:45 2016 -0400
worker: kill process group when session exits
Send a hangup signal to the session pg when it exits, so things
have a chance to get cleaned up.
https://bugzilla.gnome.org/show_bug.cgi?id=776059
daemon/gdm-session-worker.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/daemon/gdm-session-worker.c b/daemon/gdm-session-worker.c
index 7bbda49..421ef02 100644
--- a/daemon/gdm-session-worker.c
+++ b/daemon/gdm-session-worker.c
@@ -1666,6 +1666,8 @@ 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");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]