summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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