lxccontainer: s/write()/lxc_write_nointr()/g

parent 8f8fec20
...@@ -2310,7 +2310,7 @@ static char **do_lxcapi_get_interfaces(struct lxc_container *c) ...@@ -2310,7 +2310,7 @@ static char **do_lxcapi_get_interfaces(struct lxc_container *c)
/* Iterate through the interfaces */ /* Iterate through the interfaces */
for (tempIfAddr = interfaceArray; tempIfAddr != NULL; for (tempIfAddr = interfaceArray; tempIfAddr != NULL;
tempIfAddr = tempIfAddr->ifa_next) { 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) if (nbytes < 0)
goto out; goto out;
...@@ -3330,7 +3330,7 @@ static int copy_file(const char *old, const char *new) ...@@ -3330,7 +3330,7 @@ static int copy_file(const char *old, const char *new)
if (len == 0) if (len == 0)
break; break;
ret = write(out, buf, len); ret = lxc_write_nointr(out, buf, len);
if (ret < len) { /* should we retry? */ if (ret < len) { /* should we retry? */
SYSERROR("Error: write to new file %s was interrupted", new); SYSERROR("Error: write to new file %s was interrupted", new);
goto err; goto err;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment