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
db77402a
Commit
db77402a
authored
Jul 01, 2013
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
proc: Use open_proc helper to open timers file
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
1f5acc02
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
proc_parse.c
proc_parse.c
+1
-3
No files found.
proc_parse.c
View file @
db77402a
...
@@ -1165,7 +1165,6 @@ int parse_posix_timers(pid_t pid, struct proc_posix_timers_stat *args)
...
@@ -1165,7 +1165,6 @@ int parse_posix_timers(pid_t pid, struct proc_posix_timers_stat *args)
int
ret
=
0
;
int
ret
=
0
;
int
get
=
0
;
int
get
=
0
;
int
pid_t
;
int
pid_t
;
char
path
[
128
];
FILE
*
file
;
FILE
*
file
;
char
*
line1
=
NULL
;
char
*
line1
=
NULL
;
...
@@ -1188,8 +1187,7 @@ int parse_posix_timers(pid_t pid, struct proc_posix_timers_stat *args)
...
@@ -1188,8 +1187,7 @@ int parse_posix_timers(pid_t pid, struct proc_posix_timers_stat *args)
INIT_LIST_HEAD
(
&
args
->
timers
);
INIT_LIST_HEAD
(
&
args
->
timers
);
args
->
timer_n
=
0
;
args
->
timer_n
=
0
;
sprintf
(
path
,
"/proc/%d/timers"
,
pid
);
file
=
fopen_proc
(
pid
,
"timers"
);
file
=
fopen
(
path
,
"r"
);
if
(
file
==
NULL
)
{
if
(
file
==
NULL
)
{
pr_perror
(
"Can't open posix timers file!"
);
pr_perror
(
"Can't open posix timers file!"
);
ret
=
-
1
;
ret
=
-
1
;
...
...
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