From: Mike Yuan Date: Thu, 18 Dec 2025 19:12:16 +0000 (+0100) Subject: core/unit: do not check for unreachable job type X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=271690624680e9672aa939e3c4f9ed20884196c5;p=thirdparty%2Fsystemd.git core/unit: do not check for unreachable job type Refer to 7cb0030f6cec6c0a83c7c11ecc4adfb55aaf0e0b for the rationale. --- diff --git a/src/core/unit.c b/src/core/unit.c index 4287179903e..3fefa519fbd 100644 --- a/src/core/unit.c +++ b/src/core/unit.c @@ -3927,8 +3927,7 @@ bool unit_active_or_pending(Unit *u) { if (UNIT_IS_ACTIVE_OR_ACTIVATING(unit_active_state(u))) return true; - if (u->job && - IN_SET(u->job->type, JOB_START, JOB_RELOAD_OR_START, JOB_RESTART)) + if (u->job && IN_SET(u->job->type, JOB_START, JOB_RESTART)) return true; return false;