Browse Source

set O_NONBLOCK default in accept()

Joseph Henry 9 years ago
parent
commit
1458dc8347
2 changed files with 1 additions and 1 deletions
  1. 1 1
      netcon/Intercept.c
  2. BIN
      netcon/libintercept.so.1.0

+ 1 - 1
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;

BIN
netcon/libintercept.so.1.0