The idea is to read STDIN when there is data available, and otherwise to sleep for a bit, then check select to see if there is more data, sleep, etc.
-Scott
In reply to Re: Need to empty STDIN
by 5mi11er
in thread Need to empty STDIN
by bofh_of_oz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |