use `TerminateProcess` for die on windows

evades issues with the stacktrace logger in 50.10
develop
Kelly Kinkade 2023-09-14 17:42:15 -05:00
parent 2a0f5a5474
commit a13159bc35
1 changed files with 4 additions and 0 deletions

@ -1033,7 +1033,11 @@ command_result Core::runCommand(color_ostream &con, const std::string &first_, s
}
else if (first == "die")
{
#ifdef WIN32
TerminateProcess(GetCurrentProcess(),666);
#else
std::_Exit(666);
#endif
}
else if (first == "kill-lua")
{