diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-03-07 14:05:12 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-03-07 14:05:12 -0500 |
commit | 7f75c1b5f713121575d1d7e32f155a10239117ca (patch) | |
tree | 1b941997b77db3d100ab5a75264d473f03bf9452 /shell | |
parent | 09054bb579bd5afe413238feec437233dc73935e (diff) | |
download | mongo-7f75c1b5f713121575d1d7e32f155a10239117ca.tar.gz |
try to prevent shutdown stack trace
Diffstat (limited to 'shell')
-rw-r--r-- | shell/dbshell.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/dbshell.cpp b/shell/dbshell.cpp index f3147fd3814..47109f7a37c 100644 --- a/shell/dbshell.cpp +++ b/shell/dbshell.cpp @@ -80,7 +80,7 @@ void intr( int sig ){ #if !defined(_WIN32) void killOps() { - if ( mongo::shellUtils::_nokillop ) + if ( mongo::shellUtils::_nokillop || mongo::shellUtils::_allMyUris.size() == 0 ) return; vector< string > uris; for( map< const void*, string >::iterator i = mongo::shellUtils::_allMyUris.begin(); i != mongo::shellUtils::_allMyUris.end(); ++i ) |