Fix infinite loop after getting a signal If a signal would arrive and set errno to EINTER, and would resolved (handled), later reaching the end of the file (return value of 0) would still read the stale errno and keep looping.
Fix infinite loop after getting a signal If a signal would arrive and set errno to EINTER, and would resolved (handled), later reaching the end of the file (return value of 0) would still read the stale errno and keep looping.