From cfb9944f7c4d53558fa171f5cc3192b3672d761c Mon Sep 17 00:00:00 2001 From: dwight Date: Tue, 31 Aug 2010 05:18:34 -0400 Subject: [PATCH] less extraneous shutdown logging --- util/message.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/util/message.cpp b/util/message.cpp index 8688494c230..70b9957e700 100644 --- a/util/message.cpp +++ b/util/message.cpp @@ -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)