From: Christian Brauner Date: Sun, 29 Jul 2018 21:50:51 +0000 (+0200) Subject: sync: s/read()/lxc_read_nointr()/g X-Git-Tag: lxc-2.0.10~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d98d27e2df4c81894a0388abd335fdd9af8bae05;p=thirdparty%2Flxc.git sync: s/read()/lxc_read_nointr()/g Signed-off-by: Christian Brauner --- diff --git a/src/lxc/sync.c b/src/lxc/sync.c index adc6fb2c3..a9299761e 100644 --- a/src/lxc/sync.c +++ b/src/lxc/sync.c @@ -31,6 +31,7 @@ #include "sync.h" #include "log.h" #include "start.h" +#include "utils.h" lxc_log_define(lxc_sync, lxc); @@ -39,7 +40,7 @@ static int __sync_wait(int fd, int sequence) int sync = -1; ssize_t ret; - ret = read(fd, &sync, sizeof(sync)); + ret = lxc_read_nointr(fd, &sync, sizeof(sync)); if (ret < 0) { ERROR("sync wait failure : %s", strerror(errno)); return -1;