Skip to content

Commit

Permalink
sync: s/write()/lxc_write_nointr()/g
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Dec 10, 2018
1 parent d98d27e commit 9345a89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lxc/sync.c
Expand Up @@ -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;
Expand Down

0 comments on commit 9345a89

Please sign in to comment.