Bjorn Leffler has uploaded this change for review.
monitoring: build the Prometheus exposer on Darwin
TEMP_FAILURE_RETRY is a glibc convenience macro, and accept4() is
Linux-only. Provide the macro, and emulate the one accept4() flag used,
SOCK_CLOEXEC, with FD_CLOEXEC after accept(). The emulation is not
atomic, but ganesha does not fork after startup, so no descriptor can
leak through the gap.
Change-Id: I043f82f15c5f5169f6af8c4069b0c20cdf963e9a
Signed-off-by: Bjorn Leffler <github@leffler.org>
---
M src/monitoring/prometheus_exposer.cc
1 file changed, 42 insertions(+), 0 deletions(-)
git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/46/1255646/1
To view, visit change 1255646. To unsubscribe, or for help writing mail filters, visit settings.