chiark / gitweb /
shutdown: print the standard wall message even when the user provided one
[elogind.git] / src / logind-user.c
index 3076ed15738fb68ca5b37438315151406d1722b1..dacf148f7829e603c2224447408054e8cb052a58 100644 (file)
@@ -457,13 +457,13 @@ int user_get_idle_hint(User *u, dual_timestamp *t) {
         return idle_hint;
 }
 
-int user_check_gc(User *u) {
+int user_check_gc(User *u, bool drop_not_started) {
         int r;
         char *p;
 
         assert(u);
 
-        if (!u->started)
+        if (drop_not_started && !u->started)
                 return 0;
 
         if (u->sessions)