summaryrefslogtreecommitdiff
path: root/opentracker.c
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2018-05-26 00:25:59 +0200
committerDirk Engling <erdgeist@erdgeist.org>2018-05-26 00:25:59 +0200
commitd6d4fb0668638ed1a2fc4cdff7940fcc3bd7c21d (patch)
treea10d8c7480d1691a3d9c64a93a75d6c4bb3c06b4 /opentracker.c
parent48c9c6172b2b493291ee46237148d98f91c23ce9 (diff)
Tell libowfat about EWOULDBLOCK conditions
Diffstat (limited to 'opentracker.c')
-rw-r--r--opentracker.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/opentracker.c b/opentracker.c
index 90d3324..09010c7 100644
--- a/opentracker.c
+++ b/opentracker.c
@@ -239,6 +239,7 @@ static void handle_accept( const int64 serversocket ) {
239 tai_unix( &(t.sec), (g_now_seconds + OT_CLIENT_TIMEOUT) ); 239 tai_unix( &(t.sec), (g_now_seconds + OT_CLIENT_TIMEOUT) );
240 io_timeout( sock, t ); 240 io_timeout( sock, t );
241 } 241 }
242 io_eagain(serversocket);
242} 243}
243 244
244static void * server_mainloop( void * args ) { 245static void * server_mainloop( void * args ) {
@@ -269,9 +270,10 @@ static void * server_mainloop( void * args ) {
269 handle_accept( sock ); 270 handle_accept( sock );
270 else if( (intptr_t)cookie == FLAG_UDP ) 271 else if( (intptr_t)cookie == FLAG_UDP )
271 handle_udp6( sock, &ws ); 272 handle_udp6( sock, &ws );
272 else if( (intptr_t)cookie == FLAG_SELFPIPE ) 273 else if( (intptr_t)cookie == FLAG_SELFPIPE ) {
273 io_tryread( sock, ws.inbuf, G_INBUF_SIZE ); 274 io_tryread( sock, ws.inbuf, G_INBUF_SIZE );
274 else 275 fprintf(stderr, "pipe\n");
276 } else
275 handle_read( sock, &ws ); 277 handle_read( sock, &ws );
276 } 278 }
277 279