commit | 2292edf67c03d22c2d2bbe14fbe29b7e677d49ff | [log] [tgz] |
---|---|---|
author | Olivier Houchard <ohouchard@haproxy.com> | Mon Feb 25 14:26:54 2019 +0100 |
committer | Olivier Houchard <cognet@ci0.org> | Mon Feb 25 16:51:03 2019 +0100 |
tree | ce4497070dd30f86de46edea15806b98c2f2d8cb | |
parent | d16a9dfed80e75d730754b717370515265698cdd [diff] |
MINOR: fd: Use closefrom() as my_closefrom() if supported. Add a new option, USE_CLOSEFROM. If set, it is assumed the system provides a closefrom() function, so use it. It is only implicitely used on FreeBSD for now, it should work on OpenBSD/NetBSD/DragonflyBSD/Solaris too, but as I have no such system to test it, I'd rather leave it disabled by default. Users can add USE_CLOSEFROM explicitely on their make command line to activate it.