]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core/unit: disable unit debug invocation in generic unit_reset_failed()
authorMike Yuan <me@yhndnzj.com>
Fri, 8 Nov 2024 15:57:40 +0000 (16:57 +0100)
committerMike Yuan <me@yhndnzj.com>
Mon, 10 Mar 2025 22:59:31 +0000 (23:59 +0100)
src/core/service.c
src/core/unit.c

index 12b367ccc83ef94b6cdeae37b2d7284ebdfbdc68..4bad026537dd8f1f3d470031b25f69be0856b2e1 100644 (file)
@@ -5131,8 +5131,6 @@ static void service_reset_failed(Unit *u) {
         s->live_mount_result = SERVICE_SUCCESS;
         s->clean_result = SERVICE_SUCCESS;
         s->n_restarts = 0;
-
-        (void) unit_set_debug_invocation(u, /* enable= */ false);
 }
 
 static PidRef* service_main_pid(Unit *u, bool *ret_is_alien) {
index b784342c08908cec9b2877bc842cb9968227905a..781de8d594391c15e2eea22462fe8343d044a394 100644 (file)
@@ -3867,7 +3867,8 @@ void unit_reset_failed(Unit *u) {
 
         ratelimit_reset(&u->start_ratelimit);
         u->start_limit_hit = false;
-        u->debug_invocation = false;
+
+        (void) unit_set_debug_invocation(u, /* enable= */ false);
 }
 
 Unit *unit_following(Unit *u) {