aboutsummaryrefslogtreecommitdiffstats
path: root/src/vcl/sock_test_server.c
diff options
context:
space:
mode:
authorDave Wallace <dwallacelf@gmail.com>2017-11-07 02:20:07 -0500
committerFlorin Coras <florin.coras@gmail.com>2017-11-07 08:40:57 +0000
commit5917939256af392914d8a648de0c3287042ddbf6 (patch)
tree6e22c50d626bc999df401d8f19ab956378891e55 /src/vcl/sock_test_server.c
parentbfc29ba442dbb65599f29fe5aa44c6219ed0d3a8 (diff)
VCL-LDPRELOAD: enable accept4() wrapper
Change-Id: I56567953fb8329315393047913e30fc7f2242bdb Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
Diffstat (limited to 'src/vcl/sock_test_server.c')
-rw-r--r--src/vcl/sock_test_server.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vcl/sock_test_server.c b/src/vcl/sock_test_server.c
index 753a7da790c..728a6a7a14e 100644
--- a/src/vcl/sock_test_server.c
+++ b/src/vcl/sock_test_server.c
@@ -304,6 +304,8 @@ new_client (void)
-1.0 /* wait forever */ );
if (client_fd < 0)
errno = -client_fd;
+#elif HAVE_ACCEPT4
+ client_fd = accept4 (ssm->listen_fd, (struct sockaddr *) NULL, NULL, NULL);
#else
client_fd = accept (ssm->listen_fd, (struct sockaddr *) NULL, NULL);
#endif