Remove -3 as marker of exited process.

Cache exiting process for Windows to omit unnecessary syscalls.
Fix closing hThread for Windows.
Fix for pause/resume on Windows.
Fix process handle leak on Windows.
Change behavior for waitForExit on Windows.
This commit is contained in:
cheatfate 2017-12-11 21:12:07 +02:00
commit 59d4530562
2 changed files with 77 additions and 40 deletions

View file

@ -111,6 +111,7 @@ const
WAIT_TIMEOUT* = 0x00000102'i32
WAIT_FAILED* = 0xFFFFFFFF'i32
INFINITE* = -1'i32
STILL_ACTIVE* = 0x00000103'i32
STD_INPUT_HANDLE* = -10'i32
STD_OUTPUT_HANDLE* = -11'i32