From 089ad11c63ccbcc78835fb31cab1c18bdac663b5 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Sun, 29 Jul 2018 23:49:05 +0200 Subject: [PATCH] network: s/read()/lxc_read_nointr()/g Signed-off-by: Christian Brauner --- src/lxc/network.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lxc/network.c b/src/lxc/network.c index 12a7f07ec..3d37e4544 100644 --- a/src/lxc/network.c +++ b/src/lxc/network.c @@ -2099,7 +2099,7 @@ static int lxc_create_network_unpriv_exec(const char *lxcpath, const char *lxcna /* close the write-end of the pipe */ close(pipefd[1]); - bytes = read(pipefd[0], &buffer, MAXPATHLEN); + bytes = lxc_read_nointr(pipefd[0], &buffer, MAXPATHLEN); if (bytes < 0) { SYSERROR("Failed to read from pipe file descriptor"); close(pipefd[0]); @@ -2240,7 +2240,7 @@ static int lxc_delete_network_unpriv_exec(const char *lxcpath, const char *lxcna close(pipefd[1]); - bytes = read(pipefd[0], &buffer, MAXPATHLEN); + bytes = lxc_read_nointr(pipefd[0], &buffer, MAXPATHLEN); if (bytes < 0) { SYSERROR("Failed to read from pipe file descriptor."); close(pipefd[0]); -- 2.47.2