mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-04-15 12:18:52 +00:00
Fix Windows console poll() copy/paste regression
This commit is contained in:
parent
41fc76c2b8
commit
07fde68d52
1 changed files with 5 additions and 0 deletions
|
@ -901,6 +901,11 @@ RestartOperation:
|
|||
}
|
||||
|
||||
textwindows int CountConsoleInputBytesBlocking(uint32_t ms, sigset_t waitmask) {
|
||||
int got = CountConsoleInputBytes();
|
||||
if (got == -1)
|
||||
return 0;
|
||||
if (got > 0)
|
||||
return got;
|
||||
uint32_t inmode = DisableProcessedInput();
|
||||
int rc = CountConsoleInputBytesBlockingImpl(ms, waitmask, false);
|
||||
RestoreProcessedInput(inmode);
|
||||
|
|
Loading…
Add table
Reference in a new issue