Commit 9212f2e8 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov

restore: Drop unneded perror's

Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@gmail.com>
parent e672d1a8
......@@ -409,8 +409,6 @@ static int open_fd(int pid, struct fdinfo_entry *fe, int *cfd)
return 1;
}
pr_info("%s: Dup for %d\n", __func__, tmp);
*cfd = tmp;
}
......@@ -419,10 +417,8 @@ static int open_fd(int pid, struct fdinfo_entry *fe, int *cfd)
return 1;
fd = reopen_fd_as((int)fe->addr, tmp);
if (fd < 0) {
perror("Can't dup");
if (fd < 0)
return 1;
}
return 0;
}
......@@ -875,10 +871,8 @@ static int create_pipe(int pid, struct pipe_entry *e, struct pipe_info *pi, int
tmp = reopen_fd_as(e->fd, pfd[0]);
}
if (tmp < 0) {
perror("Can't dup pipe fd");
if (tmp < 0)
return 1;
}
return 0;
}
......@@ -910,10 +904,8 @@ static int attach_pipe(int pid, struct pipe_entry *e, struct pipe_info *pi)
pr_info("\t%d: Done, reopening for %d\n", pid, e->fd);
pi->users--;
tmp = reopen_fd_as(e->fd, fd);
if (tmp < 0) {
perror("Can't dup to attach pipe");
if (tmp < 0)
return 1;
}
return 0;
......
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