summaryrefslogtreecommitdiff
path: root/src/login/logind-core.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-04-09 15:03:19 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-04-21 00:20:56 -0400
commita2ed707712161869cf53102d786c939e658962e5 (patch)
tree22a7e1b7f90bb3d15fc0e683b12287357e6a8f46 /src/login/logind-core.c
parentc8a806f2c0939c241b4a99ca861d4f3dca103f14 (diff)
logind: reload config on SIGHUP
v2: - fix setting of kill_user_processes and *_ignore_inhibited settings
Diffstat (limited to 'src/login/logind-core.c')
-rw-r--r--src/login/logind-core.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/login/logind-core.c b/src/login/logind-core.c
index 8bdb3a9a38..73075274e0 100644
--- a/src/login/logind-core.c
+++ b/src/login/logind-core.c
@@ -367,6 +367,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;