diff options
author | erdgeist <> | 2007-11-20 02:21:53 +0000 |
---|---|---|
committer | erdgeist <> | 2007-11-20 02:21:53 +0000 |
commit | cf8d4fae1d7c03b6836e83f16dd877af41bd7303 (patch) | |
tree | 18d9c2d6b8b0e70cb33a9712735339ed66f5661d | |
parent | 6d09527ed8442e856920686bd03fa2d582da6956 (diff) |
Sockets do not inherit non-blocking state in libowfat...
-rw-r--r-- | opentracker.c | 3 |
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 ); |