mount_entry = iterator->elem;
len = strlen(mount_entry);
- ret = write(fd, mount_entry, len);
+ ret = lxc_write_nointr(fd, mount_entry, len);
if (ret != len)
goto on_error;
- ret = write(fd, "\n", 1);
+ ret = lxc_write_nointr(fd, "\n", 1);
if (ret != 1)
goto on_error;
}
/* Wait for parent to finish establishing a new mapping in the user
* namespace we are executing in.
*/
- if (read(d->p[0], &c, 1) != 1)
+ if (lxc_read_nointr(d->p[0], &c, 1) != 1)
return -1;
/* Close read end of the pipe. */
}
/* Tell child to proceed. */
- if (write(p[1], &c, 1) != 1) {
+ if (lxc_write_nointr(p[1], &c, 1) != 1) {
SYSERROR("Failed telling child process \"%d\" to proceed", pid);
goto on_error;
}
}
/* Tell child to proceed. */
- if (write(p[1], &c, 1) != 1) {
+ if (lxc_write_nointr(p[1], &c, 1) != 1) {
SYSERROR("Failed telling child process \"%d\" to proceed", pid);
goto on_error;
}
struct signalfd_siginfo siginfo;
struct lxc_handler *hdlr = data;
- ret = read(fd, &siginfo, sizeof(siginfo));
+ ret = lxc_read_nointr(fd, &siginfo, sizeof(siginfo));
if (ret < 0) {
ERROR("Failed to read signal info from signal file descriptor %d", fd);
return LXC_MAINLOOP_ERROR;