1
0
mirror of git://erdgeist.org/opentracker synced 2025-01-27 15:16:31 +00:00

Sockets do not inherit non-blocking state in libowfat...

This commit is contained in:
erdgeist 2007-11-20 02:21:53 +00:00
parent 6d09527ed8
commit cf8d4fae1d

View 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 );