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.
develop
Pauli 2018-07-10 18:21:05 +03:00
parent 2dac3c53c7
commit ce6af3d649
1 changed files with 1 additions and 1 deletions

@ -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")
{