]> git.ipfire.org Git - thirdparty/opentracker.git/commitdiff
Sockets do not inherit non-blocking state in libowfat...
authorerdgeist <>
Tue, 20 Nov 2007 02:21:53 +0000 (02:21 +0000)
committererdgeist <>
Tue, 20 Nov 2007 02:21:53 +0000 (02:21 +0000)
opentracker.c

index 642815a012f61375608e4ff3e2b4fc1f7a51dfba..6b5902e8b42185cb04bf0f4eafc4ab547cea82e7 100644 (file)
@@ -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 );