Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
criu
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhul
criu
Commits
9212f2e8
Commit
9212f2e8
authored
Sep 27, 2011
by
Cyrill Gorcunov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
restore: Drop unneded perror's
Signed-off-by:
Cyrill Gorcunov
<
gorcunov@gmail.com
>
parent
e672d1a8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
11 deletions
+3
-11
cr-restore.c
cr-restore.c
+3
-11
No files found.
cr-restore.c
View file @
9212f2e8
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment