summaryrefslogtreecommitdiff
path: root/src/tools/cbr
diff options
context:
space:
mode:
authordimitri staessens <[email protected]>2017-08-31 08:02:08 +0000
committerSander Vrijders <[email protected]>2017-08-31 08:02:08 +0000
commitfb4143175b2511cbc915b21ea86e08a3700539f7 (patch)
tree83972ccd8e3debe62f40afae50a3eb27476a0d40 /src/tools/cbr
parent399164eff1c6d07056ec93e3afd4079611cf9c7b (diff)
parent4060efec26115dbb9e68da67bc482a12b4f80ea8 (diff)
downloadouroboros-fb4143175b2511cbc915b21ea86e08a3700539f7.tar.gz
ouroboros-fb4143175b2511cbc915b21ea86e08a3700539f7.zip
Merged in dstaesse/ouroboros/be-fccntl (pull request #583)
lib: Add fccntl configuration command
Diffstat (limited to 'src/tools/cbr')
-rw-r--r--src/tools/cbr/cbr_server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/cbr/cbr_server.c b/src/tools/cbr/cbr_server.c
index a2e930e5..b25b09e8 100644
--- a/src/tools/cbr/cbr_server.c
+++ b/src/tools/cbr/cbr_server.c
@@ -22,7 +22,7 @@
#include <ouroboros/dev.h>
#include <ouroboros/time_utils.h>
-#include <ouroboros/fcntl.h>
+#include <ouroboros/fccntl.h>
#include <stdbool.h>
@@ -84,7 +84,7 @@ static void handle_flow(int fd)
alive = iv_start;
ts_add(&iv_start, &intv, &iv_end);
- flow_set_flags(fd, FLOW_O_NONBLOCK);
+ fccntl(fd, FLOWSFLAGS, FLOWFNONBLOCK);
while (!stop) {
clock_gettime(CLOCK_REALTIME, &now);