procfs is not mounted by default, sysctl offers a bulletproof way of requesting this information.
Part-of:
f57ceec7a util: implement pa_get_binary_name on FreeBSD without procfs requirement
src/pulse/util.c | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
Upstream: cgit.freedesktop.org