From: Mike Yuan Date: Fri, 8 Nov 2024 15:57:40 +0000 (+0100) Subject: core/unit: disable unit debug invocation in generic unit_reset_failed() X-Git-Tag: v258-rc1~1118^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a364ebd46d9fef0b16598aca8a723b6632e90a6a;p=thirdparty%2Fsystemd.git core/unit: disable unit debug invocation in generic unit_reset_failed() --- diff --git a/src/core/service.c b/src/core/service.c index 12b367ccc83..4bad026537d 100644 --- a/src/core/service.c +++ b/src/core/service.c @@ -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) { diff --git a/src/core/unit.c b/src/core/unit.c index b784342c089..781de8d5943 100644 --- a/src/core/unit.c +++ b/src/core/unit.c @@ -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) {