]> git.proxmox.com Git - mirror_lxc.git/commitdiff
lxccontainer: s/write()/lxc_write_nointr()/g
authorChristian Brauner <christian.brauner@ubuntu.com>
Sun, 29 Jul 2018 21:47:57 +0000 (23:47 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Sun, 29 Jul 2018 22:16:25 +0000 (00:16 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/lxccontainer.c

index 5912a76ba6b5de22f5f6f953df6e9de33f0dfa92..4c4d3fb4bd0852e06356daf4e3b85f31b6746fa9 100644 (file)
@@ -2331,7 +2331,7 @@ static char **do_lxcapi_get_interfaces(struct lxc_container *c)
                /* 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;
 
@@ -3351,7 +3351,7 @@ static int copy_file(const char *old, const char *new)
                if (len == 0)
                        break;
 
-               ret = write(out, buf, len);
+               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;