From 9345a89879736b7bf5dcba938226f95ad001bc20 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Sun, 29 Jul 2018 23:51:02 +0200 Subject: [PATCH] sync: s/write()/lxc_write_nointr()/g Signed-off-by: Christian Brauner --- src/lxc/sync.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lxc/sync.c b/src/lxc/sync.c index a9299761e..805e4a052 100644 --- a/src/lxc/sync.c +++ b/src/lxc/sync.c @@ -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; -- 2.47.2