Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
criu
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhul
criu
Commits
815049bc
Commit
815049bc
authored
Dec 06, 2012
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rst: Fix message about inability to restore pid 1 outside pidns
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
d9df71dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
cr-restore.c
cr-restore.c
+4
-2
No files found.
cr-restore.c
View file @
815049bc
...
@@ -1161,8 +1161,10 @@ static int restore_root_task(struct pstree_item *init, struct cr_options *opts)
...
@@ -1161,8 +1161,10 @@ static int restore_root_task(struct pstree_item *init, struct cr_options *opts)
if
(
init
->
pid
.
virt
==
INIT_PID
)
{
if
(
init
->
pid
.
virt
==
INIT_PID
)
{
if
(
!
(
opts
->
namespaces_flags
&
CLONE_NEWPID
))
{
if
(
!
(
opts
->
namespaces_flags
&
CLONE_NEWPID
))
{
pr_err
(
"This process tree can be restored in a new pid namespace.
\n
"
);
pr_err
(
"This process tree can only be restored "
pr_err
(
"crtools should be re-executed with --namespace pid
\n
"
);
"in a new pid namespace.
\n
"
"crtools should be re-executed with the "
"
\"
--namespace pid
\"
option.
\n
"
);
return
-
1
;
return
-
1
;
}
}
}
else
if
(
opts
->
namespaces_flags
&
CLONE_NEWPID
)
{
}
else
if
(
opts
->
namespaces_flags
&
CLONE_NEWPID
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment