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-3.1.0~185^2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c72cda4ea40e9d3235fd0ec2c1ea23fefb8803b9;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 50b5293c0..e983f6165 100644 --- a/src/lxc/network.c +++ b/src/lxc/network.c @@ -2179,7 +2179,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]); @@ -2335,7 +2335,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]);