mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-29 13:28:27 +00:00
dump: Collect pstree IDs separately from pstree items
For pre-dump we won't need IDs, but will need items only, thus make these two calls separate. Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
d416e6a135
commit
b556f01be3
@ -1091,7 +1091,7 @@ try_again:
|
||||
timing_stop(TIME_FREEZING);
|
||||
timing_start(TIME_FROZEN);
|
||||
|
||||
return collect_pstree_ids();
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int collect_file_locks(void)
|
||||
@ -1575,6 +1575,9 @@ int cr_dump_tasks(pid_t pid)
|
||||
if (collect_pstree(pid))
|
||||
goto err;
|
||||
|
||||
if (collect_pstree_ids())
|
||||
goto err;
|
||||
|
||||
if (network_lock())
|
||||
goto err;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user