if (WEXITSTATUS(status)) {
int n;
- n = read(pipes[0], buf, sizeof(buf));
+ n = lxc_read_nointr(pipes[0], buf, sizeof(buf));
if (n < 0) {
SYSERROR("failed reading from criu stderr");
goto out_fini_handler;
return false;
}
- n = read(criuout[0], buf, sizeof(buf));
+ n = lxc_read_nointr(criuout[0], buf, sizeof(buf));
close(criuout[0]);
if (n < 0) {
SYSERROR("read");
close(pipefd[1]);
free(criu_version);
- nread = read(pipefd[0], &status, sizeof(status));
+ nread = lxc_read_nointr(pipefd[0], &status, sizeof(status));
close(pipefd[0]);
if (sizeof(status) != nread) {
ERROR("reading status from pipe failed");