check for EINTR to avoid spinning in an empty file

This appears to prevent the long spin loop encountered when a file is empty at least on AIX.