mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 22:05:36 +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:
@@ -1091,7 +1091,7 @@ try_again:
|
|||||||
timing_stop(TIME_FREEZING);
|
timing_stop(TIME_FREEZING);
|
||||||
timing_start(TIME_FROZEN);
|
timing_start(TIME_FROZEN);
|
||||||
|
|
||||||
return collect_pstree_ids();
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int collect_file_locks(void)
|
static int collect_file_locks(void)
|
||||||
@@ -1575,6 +1575,9 @@ int cr_dump_tasks(pid_t pid)
|
|||||||
if (collect_pstree(pid))
|
if (collect_pstree(pid))
|
||||||
goto err;
|
goto err;
|
||||||
|
|
||||||
|
if (collect_pstree_ids())
|
||||||
|
goto err;
|
||||||
|
|
||||||
if (network_lock())
|
if (network_lock())
|
||||||
goto err;
|
goto err;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user