guard around EINTR