Skip to content

Commit 78ef663

Browse files
committed
varlink: fix varlink_get_peer_pidref() fallback
let's properly handle old kernels that have no pidfd, and use regular pids in that case, as intended originally.
1 parent 47bb0b8 commit 78ef663

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shared/varlink.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2871,7 +2871,7 @@ int varlink_get_peer_pidref(Varlink *v, PidRef *ret) {
28712871
* authentication. */
28722872

28732873
r = varlink_acquire_pidfd(v);
2874-
if (r < 0)
2874+
if (r < 0 && !ERRNO_IS_NEG_NOT_SUPPORTED(r))
28752875
return r;
28762876

28772877
if (v->peer_pidfd < 0) {

0 commit comments

Comments
 (0)