Commit 57e8e3e8 authored by Andrey Vagin's avatar Andrey Vagin Committed by Cyrill Gorcunov

restore: A child should not return to parent code.

Otherwise it may begin to restore a parent objects...
Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Acked-by: 's avatarPavel Emelyanov <xemul@parallels.com>
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
parent 85b991c2
......@@ -1324,7 +1324,9 @@ static inline int fork_with_pid(int pid, char *pstree_path)
return -1;
}
return restore_task_with_children(my_pid, pstree_path);
ret = restore_task_with_children(my_pid, pstree_path);
pr_err("%d: Something failed with code %d\n", ret);
exit(1);
}
err_unlock:
......
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