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-3.1.0~185^2~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba38ff8e4196a8da35f48ad02f14378710ee70bd;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 53fae06c0..536668b06 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(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) { SYSERROR("Sync wait failure"); return -1;