[gdm] worker: kill session on SIGTERM
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm] worker: kill session on SIGTERM
- Date: Tue, 10 Mar 2015 17:11:36 +0000 (UTC)
commit 095c3a9dee18ac5dbaa9bf677104858e0ecdaecc
Author: Ray Strode <rstrode redhat com>
Date: Wed Mar 4 12:33:12 2015 -0500
worker: kill session on SIGTERM
I guess in the past the session has implicitly gone away
when the display goes away, but now that the display is started
implicitly by the session that isn't really true anymore.
We need to explicitly kill the session when gdm is shutting down.
https://bugzilla.gnome.org/show_bug.cgi?id=745975
daemon/gdm-session-worker.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/daemon/gdm-session-worker.c b/daemon/gdm-session-worker.c
index 4c69da2..ec41351 100644
--- a/daemon/gdm-session-worker.c
+++ b/daemon/gdm-session-worker.c
@@ -3348,6 +3348,11 @@ gdm_session_worker_finalize (GObject *object)
gdm_session_worker_unwatch_child (worker);
+ if (worker->priv->child_pid > 0) {
+ gdm_signal_pid (worker->priv->child_pid, SIGTERM);
+ gdm_wait_on_pid (worker->priv->child_pid);
+ }
+
g_object_unref (worker->priv->user_settings);
g_free (worker->priv->service);
g_free (worker->priv->x11_display_name);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]