From: Christian Brauner Date: Sun, 29 Jul 2018 21:49:05 +0000 (+0200) Subject: network: s/read()/lxc_read_nointr()/g X-Git-Tag: lxc-2.0.10~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=089ad11c63ccbcc78835fb31cab1c18bdac663b5;p=thirdparty%2Flxc.git network: s/read()/lxc_read_nointr()/g Signed-off-by: Christian Brauner --- 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]);