summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <>2007-11-20 02:21:53 +0000
committererdgeist <>2007-11-20 02:21:53 +0000
commitcf8d4fae1d7c03b6836e83f16dd877af41bd7303 (patch)
tree18d9c2d6b8b0e70cb33a9712735339ed66f5661d
parent6d09527ed8442e856920686bd03fa2d582da6956 (diff)
Sockets do not inherit non-blocking state in libowfat...
-rw-r--r--opentracker.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/opentracker.c b/opentracker.c
index 642815a..6b5902e 100644
--- a/opentracker.c
+++ b/opentracker.c
@@ -724,6 +724,9 @@ static void handle_accept( const int64 serversocket ) {
724 724
725 while( ( i = socket_accept4( serversocket, (char*)ip, &port) ) != -1 ) { 725 while( ( i = socket_accept4( serversocket, (char*)ip, &port) ) != -1 ) {
726 726
727 /* Put fd into a non-blocking mode */
728 io_nonblock( i );
729
727 if( !io_fd( i ) || 730 if( !io_fd( i ) ||
728 !( h = (struct http_data*)malloc( sizeof( struct http_data ) ) ) ) { 731 !( h = (struct http_data*)malloc( sizeof( struct http_data ) ) ) ) {
729 io_close( i ); 732 io_close( i );