[gnome-session/wip/benzea/systemd-user-switch: 9/13] manager: Quit session manager after completing shutdown



commit 45011b3062e1fd8b201c03d60eaa8603a4dbd712
Author: Benjamin Berg <bberg redhat com>
Date:   Mon Apr 29 15:55:44 2019 +0200

    manager: Quit session manager after completing shutdown
    
    Without this gnome-session-binary will simply continue to live when the
    user requested a shutdown or reboot. In all cases (systemd, consolekit,
    otherwise) it makes sense to simply quit g-s-m after completing the
    shutdown.
    
    In fact, we could just quit immediately in all cases, as this will
    release the inhibitor FDs, but that wouldn't be quite as clean.

 gnome-session/gsm-manager.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/gnome-session/gsm-manager.c b/gnome-session/gsm-manager.c
index 3dc6e2d7..12d277e9 100644
--- a/gnome-session/gsm-manager.c
+++ b/gnome-session/gsm-manager.c
@@ -492,10 +492,12 @@ gsm_manager_quit (GsmManager *manager)
         case GSM_MANAGER_LOGOUT_REBOOT:
         case GSM_MANAGER_LOGOUT_REBOOT_INTERACT:
                 gsm_system_complete_shutdown (manager->priv->system);
+                gsm_quit ();
                 break;
         case GSM_MANAGER_LOGOUT_SHUTDOWN:
         case GSM_MANAGER_LOGOUT_SHUTDOWN_INTERACT:
                 gsm_system_complete_shutdown (manager->priv->system);
+                gsm_quit ();
                 break;
         default:
                 g_assert_not_reached ();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]