... or, in fact, just record whether errno is EINTR <code>
const bool interrupted = errno == EINTR; </code>