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
ca3b8ca0
Commit
ca3b8ca0
authored
Nov 10, 2014
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dump: Comment how we dump zombies in pid namespaces
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
7c896eff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
cr-dump.c
cr-dump.c
+13
-0
No files found.
cr-dump.c
View file @
ca3b8ca0
...
@@ -1299,9 +1299,16 @@ static int fill_zombies_pids(struct pstree_item *item)
...
@@ -1299,9 +1299,16 @@ static int fill_zombies_pids(struct pstree_item *item)
int
i
,
nr
;
int
i
,
nr
;
pid_t
*
ch
;
pid_t
*
ch
;
/*
* Pids read here are virtual -- caller has set up
* the proc of target pid namespace.
*/
if
(
parse_children
(
item
->
pid
.
virt
,
&
ch
,
&
nr
)
<
0
)
if
(
parse_children
(
item
->
pid
.
virt
,
&
ch
,
&
nr
)
<
0
)
return
-
1
;
return
-
1
;
/*
* Step 1 -- filter our ch's pid of alive tasks
*/
list_for_each_entry
(
child
,
&
item
->
children
,
sibling
)
{
list_for_each_entry
(
child
,
&
item
->
children
,
sibling
)
{
if
(
child
->
pid
.
virt
<
0
)
if
(
child
->
pid
.
virt
<
0
)
continue
;
continue
;
...
@@ -1313,6 +1320,12 @@ static int fill_zombies_pids(struct pstree_item *item)
...
@@ -1313,6 +1320,12 @@ static int fill_zombies_pids(struct pstree_item *item)
}
}
}
}
/*
* Step 2 -- assign remaining pids from ch on
* children's items in arbitrary order. The caller
* will then re-read everything needed to dump
* zombies using newly obtained virtual pids.
*/
i
=
0
;
i
=
0
;
list_for_each_entry
(
child
,
&
item
->
children
,
sibling
)
{
list_for_each_entry
(
child
,
&
item
->
children
,
sibling
)
{
if
(
child
->
pid
.
virt
>
0
)
if
(
child
->
pid
.
virt
>
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