[S] Change in ...nfs-ganesha[next]: monitoring: build the Prometheus exposer on Darwin
Bjorn Leffler has uploaded this change for review. ( https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1255646?usp=email ) Change subject: monitoring: build the Prometheus exposer on Darwin ...................................................................... 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 https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1255646?usp=email To unsubscribe, or for help writing mail filters, visit https://review.gerrithub.io/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: ffilz/nfs-ganesha Gerrit-Branch: next Gerrit-Change-Id: I043f82f15c5f5169f6af8c4069b0c20cdf963e9a Gerrit-Change-Number: 1255646 Gerrit-PatchSet: 1 Gerrit-Owner: Bjorn Leffler <github@leffler.org>
participants (1)
-
Bjorn Leffler (GerritHub)