From a13159bc35265ec169fa6597f09e8b0e7e8f5822 Mon Sep 17 00:00:00 2001 From: Kelly Kinkade Date: Thu, 14 Sep 2023 17:42:15 -0500 Subject: [PATCH] use `TerminateProcess` for die on windows evades issues with the stacktrace logger in 50.10 --- library/Core.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/library/Core.cpp b/library/Core.cpp index 176d5014d..032e2b0be 100644 --- a/library/Core.cpp +++ b/library/Core.cpp @@ -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") {