From a11cad8211bb7d5216c83999515ec50e76db261a Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Sun, 29 Jul 2018 23:48:28 +0200 Subject: [PATCH] lxccontainer: s/read()/lxc_read_nointr()/g Signed-off-by: Christian Brauner --- src/lxc/lxccontainer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lxc/lxccontainer.c b/src/lxc/lxccontainer.c index d501f8f0c..ba8ee0c87 100644 --- a/src/lxc/lxccontainer.c +++ b/src/lxc/lxccontainer.c @@ -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; -- 2.47.3