/* Iterate through the interfaces */
for (tempIfAddr = interfaceArray; tempIfAddr != NULL;
tempIfAddr = tempIfAddr->ifa_next) {
- nbytes = write(pipefd[1], tempIfAddr->ifa_name, IFNAMSIZ);
+ nbytes = lxc_write_nointr(pipefd[1], tempIfAddr->ifa_name, IFNAMSIZ);
if (nbytes < 0)
goto out;
}
if (len == 0)
break;
- ret = write(out, buf, len);
- if (ret < len) { // should we retry?
+
+ ret = lxc_write_nointr(out, buf, len);
+ if (ret < len) { /* should we retry? */
SYSERROR("Error: write to new file %s was interrupted", new);
goto err;
}