EINTR on write(): avoiding duplicate data when retrying
EINTR on write() The write() system call may return EINTR when a signal interrupts the operation before any data is transferred. POSIX requires the caller to retry, but the standard does not clarify whether data written before the interruption is discarded. This ambiguity can lead to duplicate writes on regular files. Goal Determine a reliable strategy for r