]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxccontainer: s/read()/lxc_read_nointr()/g
authorChristian Brauner <christian.brauner@ubuntu.com>
Sun, 29 Jul 2018 21:48:28 +0000 (23:48 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 10 Dec 2018 15:05:01 +0000 (16:05 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/lxccontainer.c

index d501f8f0cb633e9d08ed012a6f081ddb4a9dac5a..ba8ee0c87a2528c81a9d5a202992575023ed1ecf 100644 (file)
@@ -2102,7 +2102,7 @@ static char **do_lxcapi_get_interfaces(struct lxc_container *c)
        /* close the write-end of the pipe */
        close(pipefd[1]);
 
-       while (read(pipefd[0], &interface, IFNAMSIZ) == IFNAMSIZ) {
+       while (lxc_read_nointr(pipefd[0], &interface, IFNAMSIZ) == IFNAMSIZ) {
                interface[IFNAMSIZ - 1] = '\0';
 
                if (array_contains(&interfaces, interface, count))
@@ -2952,7 +2952,7 @@ static int copy_file(const char *old, const char *new)
        }
 
        while (1) {
-               len = read(in, buf, 8096);
+               len = lxc_read_nointr(in, buf, 8096);
                if (len < 0) {
                        SYSERROR("Error reading old file %s", old);
                        goto err;