diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/server/altservers.c | 3 | ||||
-rw-r--r-- | src/server/net.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/server/altservers.c b/src/server/altservers.c index 9a74ef2..a26ac2f 100644 --- a/src/server/altservers.c +++ b/src/server/altservers.c @@ -384,7 +384,8 @@ static void *altservers_main(void *data) // Wait 5 seconds max. numSocks = epoll_wait( fdEpoll, events, MAXEVENTS, 5000 ); if ( numSocks < 0 ) { - memlogf( "[WARNING] epoll_wait() error in uplink_connector" ); + const int err = errno; + memlogf( "[WARNING] epoll_wait() error %d in uplink_connector", err ); usleep( 100000 ); } if ( _shutdown ) goto cleanup; diff --git a/src/server/net.c b/src/server/net.c index 1d9d226..4ea95cf 100644 --- a/src/server/net.c +++ b/src/server/net.c @@ -368,8 +368,8 @@ void *net_client_handler(void *dnbd3_client) } exit_client_cleanup: ; if ( image_file != -1 ) close( image_file ); - client->running = FALSE; dnbd3_remove_client( client ); + client->running = FALSE; client = dnbd3_free_client( client ); return NULL ; } |