]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: fix the return value in order to make sure we don't dipatch method return too... 16074/head
authorMichal Sekletár <msekleta@redhat.com>
Fri, 5 Jun 2020 13:23:12 +0000 (15:23 +0200)
committerMichal Sekletár <msekleta@redhat.com>
Fri, 5 Jun 2020 14:10:40 +0000 (16:10 +0200)
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
src/core/slice.c

index 38a2805200b3eb42c74be172215f07fb5c13667d..f4f63fcb5b1a23e33c9c879202fc05830cd3a75f 100644 (file)
@@ -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) {