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
8cc9477d
Commit
8cc9477d
authored
Sep 11, 2012
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fd: Rename tmp to ret in open_fd
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
97dba0eb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
files.c
files.c
+4
-4
No files found.
files.c
View file @
8cc9477d
...
...
@@ -341,7 +341,7 @@ static int post_open_fd(int pid, FdinfoEntry *fe, struct file_desc *d)
static
int
open_fd
(
int
pid
,
FdinfoEntry
*
fe
,
struct
file_desc
*
d
)
{
int
tmp
;
int
ret
;
int
sock
;
struct
fdinfo_list_entry
*
fle
;
...
...
@@ -349,11 +349,11 @@ static int open_fd(int pid, FdinfoEntry *fe, struct file_desc *d)
if
((
fle
->
pid
!=
pid
)
||
(
fe
->
fd
!=
fle
->
fe
->
fd
))
return
0
;
tmp
=
d
->
ops
->
open
(
d
);
if
(
tmp
<
0
)
ret
=
d
->
ops
->
open
(
d
);
if
(
ret
<
0
)
return
-
1
;
if
(
reopen_fd_as
(
fe
->
fd
,
tmp
))
if
(
reopen_fd_as
(
fe
->
fd
,
ret
))
return
-
1
;
fcntl
(
fe
->
fd
,
F_SETFD
,
fe
->
flags
);
...
...
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