check the return values of I/O calls
Submitted by Patrick Horgan
Link to original bug (#657129)
Description
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":
0001-Make-temp_buf_dump-work-in-the-face-of-signals.patch
Version: git master