diff --git a/src/lxc/sync.c b/src/lxc/sync.c index a9299761ea..805e4a0520 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;