[*] 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:
parent
cb920e1ee1
commit
25ffeec543
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user