summaryrefslogtreecommitdiff
path: root/src/mongo/util/quick_exit.cpp
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2016-04-28 10:25:50 -0400
committerMark Benvenuto <mark.benvenuto@mongodb.com>2016-04-28 10:26:52 -0400
commit167a06199ece7743400d169b9c22980be04dc60a (patch)
tree63749ef5882e85daa96a30a5749ab66f50a04142 /src/mongo/util/quick_exit.cpp
parent8e22eb793373f35fa631baa3235b9ac662da0b22 (diff)
downloadmongo-167a06199ece7743400d169b9c22980be04dc60a.tar.gz
SERVER-23860 VS2015 Debug Auth tests fail with exit code 3
Diffstat (limited to 'src/mongo/util/quick_exit.cpp')
-rw-r--r--src/mongo/util/quick_exit.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/util/quick_exit.cpp b/src/mongo/util/quick_exit.cpp
index 586ccb0d4cd..6a1aa9e22fb 100644
--- a/src/mongo/util/quick_exit.cpp
+++ b/src/mongo/util/quick_exit.cpp
@@ -98,7 +98,13 @@ void quickExit(int code) {
__lsan_do_leak_check();
#endif
+#if defined(_WIN32) && defined(MONGO_CONFIG_DEBUG_BUILD)
+ // SERVER-23860: VS 2015 Debug Builds abort during _exit for unknown reasons.
+ // Bypass _exit CRT shutdown code and call ExitProcess directly instead.
+ ::ExitProcess(code);
+#else
::_exit(code);
+#endif
}
} // namespace mongo