chiark / gitweb /
logind: reload config on SIGHUP
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 9 Apr 2016 19:03:19 +0000 (15:03 -0400)
committerSven Eden <yamakuzure@gmx.net>
Fri, 16 Jun 2017 08:12:57 +0000 (10:12 +0200)
v2:
- fix setting of kill_user_processes and
  *_ignore_inhibited settings

src/login/logind-core.c

index 3079d45..5e62e5e 100644 (file)
@@ -395,6 +395,9 @@ bool manager_shall_kill(Manager *m, const char *user) {
         if (!m->kill_user_processes)
                 return false;
 
+        if (!m->kill_exclude_users && streq(user, "root"))
+                return false;
+
         if (strv_contains(m->kill_exclude_users, user))
                 return false;