2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 06:15:24 +00:00

rst-malloc: Switch to private allocations once forked

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Pavel Emelyanov
2013-11-03 17:40:15 +04:00
parent ca0b51bc00
commit 4f675313cc

View File

@@ -707,6 +707,8 @@ static int restore_one_alive_task(int pid, CoreEntry *core)
{
pr_info("Restoring resources\n");
rst_mem_switch_to_private();
if (pstree_wait_helpers())
return -1;
@@ -2159,8 +2161,6 @@ static int sigreturn_restore(pid_t pid, CoreEntry *core)
pr_info("Restore via sigreturn\n");
rst_mem_switch_to_private();
/* pr_info_vma_list(&self_vma_list); */
BUILD_BUG_ON(sizeof(struct task_restore_core_args) & 1);