diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2018-07-19 12:42:17 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2018-07-19 12:42:17 -0400 |
commit | 021fdbe02956e745b579f49fc0585747c2aec458 (patch) | |
tree | d74b6c6eaa8130e55e9b52f310acb23fcc033d73 /src/login/logind-session.c | |
parent | d54b7826fa34ee1af5d28023f1847f3ae55ff10c (diff) | |
parent | 8e0c6d2655f83927ffdce8ed2edf6d7b80423178 (diff) |
Merge tag 'systemd/v238.0-3.parabola1' into systemd/parabola
Diffstat (limited to 'src/login/logind-session.c')
-rw-r--r-- | src/login/logind-session.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/login/logind-session.c b/src/login/logind-session.c index 92eb2943fe..1859150b5e 100644 --- a/src/login/logind-session.c +++ b/src/login/logind-session.c @@ -1000,27 +1000,27 @@ static void session_remove_fifo(Session *s) { } } -bool session_check_gc(Session *s, bool drop_not_started) { +bool session_may_gc(Session *s, bool drop_not_started) { assert(s); if (drop_not_started && !s->started) - return false; + return true; if (!s->user) - return false; + return true; if (s->fifo_fd >= 0) { if (pipe_eof(s->fifo_fd) <= 0) - return true; + return false; } if (s->scope_job && manager_job_is_active(s->manager, s->scope_job)) - return true; + return false; if (s->scope && manager_unit_is_active(s->manager, s->scope)) - return true; + return false; - return false; + return true; } void session_add_to_gc_queue(Session *s) { |