Rewrite Windows poll()

We can now await signals, files, pipes, and console simultaneously. This
change also gives a deeper review and testing to changes made yesterday.
This commit is contained in:
Justine Tunney 2024-09-10 18:59:06 -07:00
parent cceddd21b2
commit fbdf9d028c
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
15 changed files with 425 additions and 191 deletions

View file

@ -899,7 +899,8 @@ RestartOperation:
goto RestartOperation;
}
textwindows int CountConsoleInputBytesBlocking(uint32_t ms, sigset_t waitmask) {
textwindows static int CountConsoleInputBytesBlocking(uint32_t ms,
sigset_t waitmask) {
int got = CountConsoleInputBytes();
if (got == -1)
return 0;