From: Michal Sekletár Date: Fri, 5 Jun 2020 13:23:12 +0000 (+0200) Subject: core: fix the return value in order to make sure we don't dipatch method return too... X-Git-Tag: v246-rc1~187^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F16074%2Fhead;p=thirdparty%2Fsystemd.git 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 --- diff --git a/src/core/slice.c b/src/core/slice.c index 38a2805200b..f4f63fcb5b1 100644 --- a/src/core/slice.c +++ b/src/core/slice.c @@ -403,7 +403,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) {