From cf8d4fae1d7c03b6836e83f16dd877af41bd7303 Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Tue, 20 Nov 2007 02:21:53 +0000 Subject: Sockets do not inherit non-blocking state in libowfat... --- opentracker.c | 3 +++ 1 file changed, 3 insertions(+) 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 ) { while( ( i = socket_accept4( serversocket, (char*)ip, &port) ) != -1 ) { + /* Put fd into a non-blocking mode */ + io_nonblock( i ); + if( !io_fd( i ) || !( h = (struct http_data*)malloc( sizeof( struct http_data ) ) ) ) { io_close( i ); -- cgit v1.2.3