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
e93566c7
Commit
e93566c7
authored
Aug 11, 2013
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rst: Write comment about why we need two calls to restore_pgid
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
4c83c432
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
cr-restore.c
cr-restore.c
+9
-0
No files found.
cr-restore.c
View file @
e93566c7
...
@@ -1191,6 +1191,15 @@ static int restore_task_with_children(void *_arg)
...
@@ -1191,6 +1191,15 @@ static int restore_task_with_children(void *_arg)
if
(
create_children_and_session
())
if
(
create_children_and_session
())
exit
(
1
);
exit
(
1
);
/*
* Unlike sessions, process groups (a.k.a. pgids) can be joined
* by any task, provided the task with pid == pgid (group leader)
* exists. Thus, in order to restore pgid we must make sure that
* group leader was born (stage barrier below), created the group
* (the 1st restore_pgid below) and then join one (the 2nd call
* to restore_pgid).
*/
if
(
current
->
pgid
==
current
->
pid
.
virt
)
if
(
current
->
pgid
==
current
->
pid
.
virt
)
restore_pgid
();
restore_pgid
();
...
...
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