]> git.proxmox.com Git - mirror_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>
Sun, 29 Jul 2018 22:16:29 +0000 (00:16 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/sync.c

index 53fae06c05d39a30da52e8fcd017e2eba9cb152c..536668b062524548b9ae8ac2a9b341ffbe177487 100644 (file)
@@ -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;