check for EINTR in file functions