I\'ve found this piece of code used several times (also a similar one where it\'s used open() instead of write()).
open()
write()
int c = write(fd
From the man page on write:
write
The call was interrupted by a signal before any data was written