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
e8f48400
Commit
e8f48400
authored
Sep 28, 2013
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dump: Add some comments to tasks collecting code
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
2fe5884d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
cr-dump.c
cr-dump.c
+12
-0
No files found.
cr-dump.c
View file @
e8f48400
...
@@ -939,6 +939,12 @@ static int collect_subtree(struct pstree_item *item)
...
@@ -939,6 +939,12 @@ static int collect_subtree(struct pstree_item *item)
return
-
1
;
return
-
1
;
}
}
/*
* Tasks may clone() with the CLONE_PARENT flag while we collect
* them, making more kids to their parent. So before proceeding
* check that the parent we're working on has no more kids born.
*/
if
(
check_subtree
(
item
))
if
(
check_subtree
(
item
))
return
-
1
;
return
-
1
;
...
@@ -1652,6 +1658,12 @@ int cr_dump_tasks(pid_t pid)
...
@@ -1652,6 +1658,12 @@ int cr_dump_tasks(pid_t pid)
if
(
connect_to_page_server
())
if
(
connect_to_page_server
())
goto
err
;
goto
err
;
/*
* The collect_pstree will also stop (PTRACE_SEIZE) the tasks
* thus ensuring that they don't modify anything we collect
* afterwards.
*/
if
(
collect_pstree
(
pid
))
if
(
collect_pstree
(
pid
))
goto
err
;
goto
err
;
...
...
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