If EOF is read on stdin (such as when it is /dev/null), stop calling select() on it. Otherwise, the code goes into an infinite loop attempting to read from stdin which is always ready but never has any data and it never calls the timer callback to progress. |
||
|---|---|---|
| .. | ||
| posix | ||
| win32 | ||