]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
sync: s/read()/lxc_read_nointr()/g
authorChristian Brauner <christian.brauner@ubuntu.com>
Sun, 29 Jul 2018 21:50:51 +0000 (23:50 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 10 Dec 2018 15:05:14 +0000 (16:05 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/sync.c

index adc6fb2c3e77c9f595d9f5c7b6c725f0d9952aaa..a9299761ead56af29060c7b22359bd2e5a4fd295 100644 (file)
@@ -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;