mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-27 13:00:28 +00:00
Make stdin pollable on Windows
You can now play Super Mario Bros in CMD.EXE using Cosmopolitan! This is thanks to a new worker thread that's spawned on Windows whenever any one of poll(), select(), or ioctl(FIONREAD) is linked.
This commit is contained in:
parent
ef6387ee5e
commit
9c0821def7
15 changed files with 280 additions and 58 deletions
|
@ -1625,7 +1625,7 @@ static char *FinishGeneratingDosHeader(char *p) {
|
|||
p = WRITE16LE(p, 0); // 38
|
||||
|
||||
// terminate the shell quote started earlier in the ape magic. the big
|
||||
// concern with shell script quoting is that binary content mimght get
|
||||
// concern with shell script quoting, is that binary content might get
|
||||
// generated in the dos stub which has an ascii value that is the same
|
||||
// as the end of quote. using a longer terminator reduces it to a very
|
||||
// low order of probability. tacking on an unpredictable deterministic
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue