summaryrefslogtreecommitdiff
path: root/src/mongo/shell/shell_utils.cpp
diff options
context:
space:
mode:
authorAndrew Morrow <acm@mongodb.com>2014-10-02 11:23:23 -0400
committerAndrew Morrow <acm@mongodb.com>2014-10-03 07:11:10 -0400
commit83a9b2f590ca17de90c7020ab2fc4020ff0954b9 (patch)
treeaee10c0012368f3378498dac3793bfae600d0bac /src/mongo/shell/shell_utils.cpp
parentb7ee010b720d6176b7fba888594660402c9fb3f9 (diff)
downloadmongo-83a9b2f590ca17de90c7020ab2fc4020ff0954b9.tar.gz
SERVER-15504 Flow all calls to _exit through quickExit
Diffstat (limited to 'src/mongo/shell/shell_utils.cpp')
-rw-r--r--src/mongo/shell/shell_utils.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/shell/shell_utils.cpp b/src/mongo/shell/shell_utils.cpp
index 25e6317c056..159199b8e49 100644
--- a/src/mongo/shell/shell_utils.cpp
+++ b/src/mongo/shell/shell_utils.cpp
@@ -41,6 +41,7 @@
#include "mongo/shell/shell_utils_extended.h"
#include "mongo/shell/shell_utils_launcher.h"
#include "mongo/util/processinfo.h"
+#include "mongo/util/quick_exit.h"
#include "mongo/util/text.h"
#include "mongo/util/version_reporting.h"
@@ -92,7 +93,7 @@ namespace mongo {
// converts to the integer value 0.
goingAwaySoon();
int exit_code = int( args.firstElement().number() );
- ::_exit(exit_code);
+ quickExit(exit_code);
return undefinedReturn;
}