int rc;
char buf[4];
- rc = read(fd, buf, sizeof(buf));
+ rc = lxc_read_nointr(fd, buf, sizeof(buf));
if (rc > 0 && !strncmp(buf, "quit", 4))
quit = 1;
}
struct lxc_msg msglxc;
struct lxc_monitor *mon = data;
- ret = read(fd, &msglxc, sizeof(msglxc));
+ ret = lxc_read_nointr(fd, &msglxc, sizeof(msglxc));
if (ret != sizeof(msglxc)) {
SYSERROR("Reading from fifo failed: %s.", strerror(errno));
return 1;
perror("write pipe");
exit(EXIT_FAILURE);
}
- if (read(pipe_fds2[0], buf, 1) < 1) {
+ if (lxc_read_nointr(pipe_fds2[0], buf, 1) < 1) {
perror("read pipe");
exit(EXIT_FAILURE);
}
close(pipe_fds1[1]);
close(pipe_fds2[0]);
- if (read(pipe_fds1[0], buf, 1) < 1) {
+ if (lxc_read_nointr(pipe_fds1[0], buf, 1) < 1) {
perror("read pipe");
exit(EXIT_FAILURE);
}