diff options
author | Sven Eden <yamakuzure@gmx.net> | 2018-06-18 09:23:46 +0200 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2018-06-29 07:12:51 +0200 |
commit | 9e89768d6cfef494067b82871b4d9b1d2bac2d8e (patch) | |
tree | bf91df7338d8dd440fdf6f4fb546b10bc079ef92 /src/login | |
parent | 2b37284d88a47f7f2f3331f42e9a695f1738f009 (diff) |
Prep v238: Disallow killing of lingering user processes even if forced.
Diffstat (limited to 'src/login')
-rw-r--r-- | src/login/logind-session.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/login/logind-session.c b/src/login/logind-session.c index 6d2b755eb..79669b2a8 100644 --- a/src/login/logind-session.c +++ b/src/login/logind-session.c @@ -735,9 +735,8 @@ static int session_stop_cgroup(Session *s, bool force) { #if 0 /// elogind must not kill lingering user processes alive if (force || manager_shall_kill(s->manager, s->user->name)) { #else - if (force - || ( manager_shall_kill(s->manager, s->user->name) - && (user_check_linger_file(s->user) < 1) ) ) { + if ( (force || manager_shall_kill(s->manager, s->user->name) ) + && (user_check_linger_file(s->user) < 1) ) { #endif // 1 r = session_kill(s, KILL_ALL, SIGTERM); |