mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-29 13:28:27 +00:00
pstree: Skip zombie dumping tricks if there is kdat.has_nspid
In case of kdat.has_nspid == true, zombie pids are already dumped. v4: New Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
parent
3e6fdadebc
commit
fec8dc4a1e
@ -1136,6 +1136,7 @@ static int dump_zombies(void)
|
||||
continue;
|
||||
|
||||
if (vpid(item) < 0) {
|
||||
BUG_ON(kdat.has_nspid);
|
||||
if (!pidns)
|
||||
vpid(item) = item->pid->real;
|
||||
else if (root_item == item) {
|
||||
@ -1149,8 +1150,10 @@ static int dump_zombies(void)
|
||||
if (parse_pid_stat(vpid(item), &pps_buf) < 0)
|
||||
goto err;
|
||||
|
||||
vsid(item) = pps_buf.sid;
|
||||
vpgid(item) = pps_buf.pgid;
|
||||
if (!kdat.has_nspid) {
|
||||
vsid(item) = pps_buf.sid;
|
||||
vpgid(item) = pps_buf.pgid;
|
||||
}
|
||||
|
||||
BUG_ON(!list_empty(&item->children));
|
||||
if (dump_one_zombie(item, &pps_buf) < 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user