From: Ivan Kruglov Date: Wed, 16 Jul 2025 12:57:56 +0000 (-0700) Subject: basic: pidref_is_set_or_automatic() X-Git-Tag: v259-rc1~276^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=366f57bff44bc67009aa5c877ebc5fcb14156aeb;p=thirdparty%2Fsystemd.git basic: pidref_is_set_or_automatic() --- diff --git a/src/basic/pidref.h b/src/basic/pidref.h index 1a7ff85935e..8280910f5d9 100644 --- a/src/basic/pidref.h +++ b/src/basic/pidref.h @@ -55,6 +55,10 @@ static inline bool pidref_is_set(const PidRef *pidref) { bool pidref_is_automatic(const PidRef *pidref); +static inline bool pidref_is_set_or_automatic(const PidRef *pidref) { + return pidref_is_set(pidref) || pidref_is_automatic(pidref); +} + static inline bool pidref_is_remote(const PidRef *pidref) { /* If the fd is set to -EREMOTE we assume PidRef does not refer to a local PID, but on another * machine (and we just got the PidRef initialized due to deserialization of some RPC message) */