Commit e902861c authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

restore: Unify exit() return code

Some exit()'s are called with exit(-1), some
are with exit(1). Use exit(1) everywhere for
consistency.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 18db781a
......@@ -1087,10 +1087,10 @@ static int restore_task_with_children(void *_arg)
/* Restore root task */
if (current->parent == NULL) {
if (collect_mount_info())
exit(-1);
exit(1);
if (prepare_namespace(current->pid.virt, ca->clone_flags))
exit(-1);
exit(1);
/*
* We need non /proc proc mount for restoring pid and mount
......@@ -1098,10 +1098,10 @@ static int restore_task_with_children(void *_arg)
* Thus -- mount proc at custom location for any new namespace
*/
if (mount_proc())
exit(-1);
exit(1);
if (root_prepare_shared())
exit(-1);
exit(1);
}
/*
......
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