Skip to content

os: Use LOCAL_PEERCRED instead of getpeereid() on FreeBSD

Jan Beich requested to merge jbeich/xserver:freebsd-peercred into master

Inspired by 165d5c12.

LOCAL_PEERCRED (FreeBSD, DragonFly) is similar to SO_PEERCRED (Linux, OpenBSD). getpeereid() uses LOCAL_PEERCRED but getpeerucred() is missing, so there's no wrapper to get cr_pid.

Fixes XResGetClientPid() used by

CC @manu, @arichardson

Edited by Jan Beich

Merge request reports

Loading