From d0d329cbde5ea67f1ab16481b4e93c873ed9b19c Mon Sep 17 00:00:00 2001 From: dimitri staessens Date: Sun, 23 Oct 2016 11:08:18 +0200 Subject: tools: Fix setting flags in oping tool --- src/tools/oping/oping_server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/oping/oping_server.c b/src/tools/oping/oping_server.c index 193b76d1..bcd47f9a 100644 --- a/src/tools/oping/oping_server.c +++ b/src/tools/oping/oping_server.c @@ -150,7 +150,7 @@ void * accept_thread(void * o) server.times[fd] = now; pthread_mutex_unlock(&server.lock); - flow_cntl(fd, FLOW_F_SETFL, FLOW_O_NONBLOCK); + flow_cntl(fd, FLOW_F_SETFL, FLOW_O_NONBLOCK | FLOW_O_RDWR); } return (void *) 0; -- cgit v1.2.3