monitor: s/write()/lxc_write_nointr()/g

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner 2018-07-30 00:00:19 +02:00
parent 2a71131d33
commit 802e609aa9
No known key found for this signature in database
GPG Key ID: 8EB056D53EECB12D

View File

@ -122,7 +122,7 @@ static void lxc_monitor_fifo_send(struct lxc_msg *msg, const char *lxcpath)
return;
}
ret = write(fd, msg, sizeof(*msg));
ret = lxc_write_nointr(fd, msg, sizeof(*msg));
if (ret != sizeof(*msg)) {
close(fd);
SYSERROR("Failed to write to monitor fifo \"%s\".", fifo_path);