summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Henry <joseph.henry@gmail.com>2015-10-21 16:32:27 -0700
committerJoseph Henry <joseph.henry@gmail.com>2015-10-21 16:32:27 -0700
commit1458dc83477363454cc3b0ce44d34dee0432cad2 (patch)
treef682ee1a27b7cfecb902a7f755ea316a32e677fb
parent303579cb42ed35a001174cf74e195ebd8321ab5d (diff)
downloadinfinitytier-1458dc83477363454cc3b0ce44d34dee0432cad2.tar.gz
infinitytier-1458dc83477363454cc3b0ce44d34dee0432cad2.zip
set O_NONBLOCK default in accept()
-rwxr-xr-xnetcon/Intercept.c2
-rwxr-xr-xnetcon/libintercept.so.1.0bin47664 -> 47704 bytes
2 files changed, 1 insertions, 1 deletions
diff --git a/netcon/Intercept.c b/netcon/Intercept.c
index 72c4cbda..44f64881 100755
--- a/netcon/Intercept.c
+++ b/netcon/Intercept.c
@@ -656,7 +656,7 @@ int accept(ACCEPT_SIG)
}
//if(opt & O_NONBLOCK)
- //fcntl(sockfd, F_SETFL, O_NONBLOCK);
+ fcntl(sockfd, F_SETFL, O_NONBLOCK);
char rbuf[16], c[1];
int new_conn_socket;
diff --git a/netcon/libintercept.so.1.0 b/netcon/libintercept.so.1.0
index 8e40bae2..3037aeb5 100755
--- a/netcon/libintercept.so.1.0
+++ b/netcon/libintercept.so.1.0
Binary files differ