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

parent 7b6f89cd
......@@ -276,7 +276,7 @@ int main(int argc, char *argv[])
continue;
}
if (write(fd, "quit", 4) < 0) {
if (lxc_write_nointr(fd, "quit", 4) < 0) {
SYSERROR("Unable to close monitor on path: %s", my_args.lxcpath[i]);
ret = EXIT_FAILURE;
close(fd);
......
......@@ -418,7 +418,7 @@ int main(int argc, char *argv[])
exit(EXIT_FAILURE);
}
ret = write(start_arg.wait_fd, &wait_val, sizeof(wait_val));
ret = lxc_write_nointr(start_arg.wait_fd, &wait_val, sizeof(wait_val));
if (ret < 0) {
SYSERROR("Failed to write eventfd");
free_ifname_list();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment