Commit b556f01b authored by Pavel Emelyanov's avatar Pavel Emelyanov

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: 's avatarPavel Emelyanov <xemul@parallels.com>
parent d416e6a1
...@@ -1091,7 +1091,7 @@ try_again: ...@@ -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) ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment