]> git.proxmox.com Git - mirror_lxc.git/commitdiff
monitor: s/write()/lxc_write_nointr()/g
authorChristian Brauner <christian.brauner@ubuntu.com>
Sun, 29 Jul 2018 22:00:19 +0000 (00:00 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Sun, 29 Jul 2018 22:16:35 +0000 (00:16 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/monitor.c

index c35b5e13fe5a5839ed722f43d6600475e7d7c713..5aa8e6036ec71e719125fcbb4ac3bc42722af477 100644 (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);