From ce6af3d6498c92f4c1ab264cfb376d8e7093ce06 Mon Sep 17 00:00:00 2001 From: Pauli Date: Tue, 10 Jul 2018 18:21:05 +0300 Subject: [PATCH] Use c++ standard std::_Exit instead of _exit _exit seems to run dll unloading code which calls static destructors. Standrd requires std::_Exit not to call destructors which makes using it attractive in case MSVC actually follows the standard. --- library/Core.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Core.cpp b/library/Core.cpp index 479eaea08..8dcfa3d8c 100644 --- a/library/Core.cpp +++ b/library/Core.cpp @@ -1163,7 +1163,7 @@ command_result Core::runCommand(color_ostream &con, const std::string &first_, v } else if (builtin == "die") { - _exit(666); + std::_Exit(666); } else if (builtin == "kill-lua") {