sheredom / subprocess.h

🐜 single header process launching solution for C and C++
The Unlicense
1.12k stars 97 forks source link

Close handles early on windows to allow reading lots of data. #23

Closed sheredom closed 4 years ago

sheredom commented 4 years ago

I set out in this commit to get polling to work (being able to read from a process before its actually complete) - and utterly failed. Instead I think I've worked out how to get Windows to not lock up on reading any amount of data from the subprocess, which I think fixes #16.

Fixes #16.