summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordwight <dwight@10gen.com>2010-08-31 05:18:34 -0400
committerEliot Horowitz <eliot@10gen.com>2010-09-15 14:53:32 -0400
commitd9a5ccd44404d92e302a55a0b8d51e623f1942aa (patch)
tree9141dbcac94389d437dba5323c47f8eb2f5eb88c
parentc0a629af4eb2c0ee5dd550fd6074c2124619cac7 (diff)
downloadmongo-d9a5ccd44404d92e302a55a0b8d51e623f1942aa.tar.gz
less extraneous shutdown logging
-rw-r--r--util/message.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/util/message.cpp b/util/message.cpp
index ddd7b160c09..a809c1fa091 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)