[*] Revert last commit. Doing the correct thing just resulted in the console not being flushed 100% of the time.

Oh well, i'll investigate later. This should help.
This commit is contained in:
Reece Wilson 2023-02-09 13:08:13 +00:00
parent cb920e1ee1
commit 25ffeec543
2 changed files with 6 additions and 1 deletions

View File

@ -1580,8 +1580,12 @@ namespace Aurora::Console::ConsoleStd
gCanonicalEnabled = false;
Pump();
::FlushFileBuffers(gOutputStream);
SignalKillNT();
AuWin32CloseHandle(gTerminateConsole);
// Note: CloseHandle in the middle of a ReadFile blocks

View File

@ -175,7 +175,8 @@ namespace Aurora::Exit
ctrlType == CTRL_SHUTDOWN_EVENT)
{
Exit::gHasCanceled = false;
SendTerminateSignalAndBlock();
//SendTerminateSignalAndBlock();// for some reason we aren't getting win32 console flushes **reliably** :(
SendExitSignal(nullptr);
return !AuExchange(Exit::gHasCanceled, false);
}