chiark / gitweb /
Set up cgroups when logind starts
[elogind.git] / src / login / logind-dbus.c
index 301c4de2fe8df691f79da262622730ea5d505f77..5e6952de0593add01e1c4296654878c0e42f7b5c 100644 (file)
@@ -837,6 +837,8 @@ static int method_release_session(sd_bus *bus, sd_bus_message *message, void *us
         if (r < 0)
                 return r;
 
+        session_add_to_gc_queue(session);
+
         return sd_bus_reply_method_return(message, NULL);
 }
 
@@ -1430,9 +1432,7 @@ static int execute_shutdown_or_sleep(
 
         bus_manager_log_shutdown(m, w, action);
 
-        /* FIXME: here do the thing.  */
-
-        r = shutdown_or_sleep(action);
+        r = shutdown_or_sleep(m, action);
         if (r < 0)
                 return r;