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

index a9299761ead56af29060c7b22359bd2e5a4fd295..805e4a0520d6d9a81eb847fc531677b25f553a06 100644 (file)
@@ -72,8 +72,8 @@ static int __sync_wake(int fd, int sequence)
 {
        int sync = sequence;
 
-       if (write(fd, &sync, sizeof(sync)) < 0) {
-               ERROR("sync wake failure : %s", strerror(errno));
+       if (lxc_write_nointr(fd, &sync, sizeof(sync)) < 0) {
+               SYSERROR("Sync wake failure");
                return -1;
        }
        return 0;