Prefer errno_interrupted function over open coding the check
Use robust_read/write for retry-on-EINTR pattern