mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 06:15:24 +00:00
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: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
18db781a8e
commit
e902861c08
@@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user