core/unit: disable unit debug invocation in generic unit_reset_failed()

This commit is contained in:
Mike Yuan
2025-03-10 23:59:31 +01:00
parent bb3ad7b2f1
commit a364ebd46d
2 changed files with 2 additions and 3 deletions
-2
View 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) {
+2 -1
View 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) {