0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 09:06:21 +01:00

less extraneous shutdown logging

This commit is contained in:
dwight 2010-08-31 05:18:34 -04:00
parent 64fd5585b8
commit cfb9944f7c

View File

@ -201,10 +201,12 @@ namespace mongo {
if ( x == ECONNABORTED || x == EBADF ) {
log() << "Listener on port " << _port << " aborted" << endl;
return;
} if ( x == 0 && inShutdown() ){
}
if ( x == 0 && inShutdown() ) {
return; // socket closed
}
log() << "Listener: accept() returns " << s << " " << errnoWithDescription(x) << endl;
if( !inShutdown() )
log() << "Listener: accept() returns " << s << " " << errnoWithDescription(x) << endl;
continue;
}
if (from.getType() != AF_UNIX)