From: Lennart Poettering Date: Fri, 22 Nov 2024 11:14:59 +0000 (+0100) Subject: varlink: apparently on old kernels SO_PEERPIDFD returns EINVAL X-Git-Tag: v257-rc3~51 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e39cbb14428609a2bdacbf6bb8da264135cf8972;p=thirdparty%2Fsystemd.git varlink: apparently on old kernels SO_PEERPIDFD returns EINVAL --- diff --git a/src/libsystemd/sd-varlink/varlink-util.c b/src/libsystemd/sd-varlink/varlink-util.c index 971be643e82..b16d4bddb6c 100644 --- a/src/libsystemd/sd-varlink/varlink-util.c +++ b/src/libsystemd/sd-varlink/varlink-util.c @@ -16,7 +16,7 @@ int varlink_get_peer_pidref(sd_varlink *v, PidRef *ret) { int pidfd = sd_varlink_get_peer_pidfd(v); if (pidfd < 0) { - if (!ERRNO_IS_NEG_NOT_SUPPORTED(pidfd)) + if (!ERRNO_IS_NEG_NOT_SUPPORTED(pidfd) && pidfd != -EINVAL) return pidfd; pid_t pid;