Closed mignon-p closed 7 years ago
I was finding that my program would run for a little while, and then hang reading from stdin. Checking that the return value of select() is greater than zero (where zero means timeout) seems to fix that problem.
thanks
I was finding that my program would run for a little while, and then hang reading from stdin. Checking that the return value of select() is greater than zero (where zero means timeout) seems to fix that problem.