mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-19 09:35:12 +00:00
restore: prepare shared objects after initializing namespaces
On this stage crtools unlink old socket files, create ghost files and etc, so we should be in a correct namespace. Signed-off-by: Andrey Vagin <avagin@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
420325dca6
commit
bd4e5d2f9d
1 changed files with 4 additions and 3 deletions
|
|
@ -708,6 +708,10 @@ static int restore_task_with_children(void *_arg)
|
||||||
mount_proc();
|
mount_proc();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (me == root_item)
|
||||||
|
if (prepare_shared())
|
||||||
|
exit(-1);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The block mask will be restored in sigresturn.
|
* The block mask will be restored in sigresturn.
|
||||||
*
|
*
|
||||||
|
|
@ -890,9 +894,6 @@ int cr_restore_tasks(pid_t pid, struct cr_options *opts)
|
||||||
if (prepare_pstree() < 0)
|
if (prepare_pstree() < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if (prepare_shared() < 0)
|
|
||||||
return -1;
|
|
||||||
|
|
||||||
if (prepare_pstree_ids() < 0)
|
if (prepare_pstree_ids() < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue