From: Christian Brauner Date: Sun, 29 Jul 2018 21:51:02 +0000 (+0200) Subject: sync: s/write()/lxc_write_nointr()/g X-Git-Tag: lxc-2.0.10~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9345a89879736b7bf5dcba938226f95ad001bc20;p=thirdparty%2Flxc.git sync: s/write()/lxc_write_nointr()/g Signed-off-by: Christian Brauner --- 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;