check the return values of I/O calls
Submitted by Patrick Horgan
Created attachment 194442 A patch to fix the problem
If a signal comes before the write happens, the write fails and returns -1 with errno set to EINTR. If a signal comes after the write started, the write will return the numbers of bytes written. I'm adding a patch that makes the write restart in the first case and continue in the second.
Patch 194442, "A patch to fix the problem":
Version: git master