diff options
author | Michal Sekletár <msekleta@redhat.com> | 2020-06-05 15:23:12 +0200 |
---|---|---|
committer | The Plumber <50238977+systemd-rhel-bot@users.noreply.github.com> | 2020-06-23 14:50:50 +0200 |
commit | 4da9dfaec0d7d232d8bfed0d7f65afd65369bc8c (patch) | |
tree | 711c73e2c615e333400a1204ba09e585521a0945 | |
parent | abf2fb67dc3d7da8db030ea8b8db73a20acc08a9 (diff) | |
download | systemd-4da9dfaec0d7d232d8bfed0d7f65afd65369bc8c.tar.gz |
core: fix the return value in order to make sure we don't dipatch method return too early
Actually, it is the same kind of problem as in d910f4c . Basically, we
need to return 1 on success code path in slice_freezer_action().
Otherwise we dispatch DBus return message too soon.
Fixes: #16050
(cherry picked from commit 2884836e3c26fa76718319cdc6d13136bbc1354d)
Related: #1830861
-rw-r--r-- | src/core/slice.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/slice.c b/src/core/slice.c index b5eb2f5c01..c10e830917 100644 --- a/src/core/slice.c +++ b/src/core/slice.c @@ -399,7 +399,7 @@ static int slice_freezer_action(Unit *s, FreezerAction action) { if (r < 0) return r; - return 0; + return 1; } static int slice_freeze(Unit *s) { |