Skip to content

Commit a13159b

Browse files
committed
use TerminateProcess for die on windows
evades issues with the stacktrace logger in 50.10
1 parent 2a0f5a5 commit a13159b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

library/Core.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -1033,7 +1033,11 @@ command_result Core::runCommand(color_ostream &con, const std::string &first_, s
10331033
}
10341034
else if (first == "die")
10351035
{
1036+
#ifdef WIN32
1037+
TerminateProcess(GetCurrentProcess(),666);
1038+
#else
10361039
std::_Exit(666);
1040+
#endif
10371041
}
10381042
else if (first == "kill-lua")
10391043
{

0 commit comments

Comments
 (0)