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
caf860c2
Commit
caf860c2
authored
Mar 16, 2012
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
proc parse: Small sanitation of maps parsing
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
2b9fd6ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
proc_parse.c
proc_parse.c
+2
-2
No files found.
proc_parse.c
View file @
caf860c2
...
...
@@ -39,7 +39,6 @@ int parse_maps(pid_t pid, struct list_head *vma_area_list, bool use_map_files)
}
while
(
fgets
(
big_buffer
,
sizeof
(
big_buffer
),
maps
))
{
struct
stat
st_buf
;
int
num
;
char
file_path
[
6
];
...
...
@@ -116,6 +115,7 @@ int parse_maps(pid_t pid, struct list_head *vma_area_list, bool use_map_files)
* disk and restore might need to analyze it.
*/
if
(
vma_area
->
vm_file_fd
>=
0
)
{
struct
stat
st_buf
;
if
(
fstat
(
vma_area
->
vm_file_fd
,
&
st_buf
)
<
0
)
{
pr_perror
(
"Failed fstat on %d's map %lu"
,
pid
,
start
);
...
...
@@ -138,7 +138,7 @@ int parse_maps(pid_t pid, struct list_head *vma_area_list, bool use_map_files)
vma_area
->
shmid
=
st_buf
.
st_ino
;
if
(
!
strcmp
(
file_path
,
"/SYSV"
))
{
pr_
perror
(
"path: %s
\n
"
,
file_path
);
pr_
info
(
"path: %s
\n
"
,
file_path
);
vma_area
->
vma
.
status
|=
VMA_AREA_SYSVIPC
;
}
}
else
{
...
...
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