MEDIUM: listener: provide a fallback for accept4() when not supported
authorWilly Tarreau <w@1wt.eu>
Mon, 22 Oct 2012 17:32:55 +0000 (19:32 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 22 Oct 2012 17:32:55 +0000 (19:32 +0200)
commit6b3b0d4736f2e27cbbcd2f8f94edad3a1fb1c574
tree891f5f0573e241d343065251eaccbb4d7fea1b67
parenta068a2951d84519a938a969d5061ca3ec3a27eb9
MEDIUM: listener: provide a fallback for accept4() when not supported

It happens that on some systems, the libc is recent enough to permit
building with accept4() but the kernel does not support it. The result
is then a disaster since no connection is accepted. We now detect this
and automatically fall back to accept() and fcntl() when this happens.
src/listener.c