mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
varlink: apparently on old kernels SO_PEERPIDFD returns EINVAL
This commit is contained in:
committed by
Yu Watanabe
parent
bc4a027f9c
commit
e39cbb1442
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user