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