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
32b4a26c
Commit
32b4a26c
authored
Nov 03, 2013
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
restore: Comment why we need copy data on task restore args
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
ebd76f4b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
cr-restore.c
cr-restore.c
+10
-0
No files found.
cr-restore.c
View file @
32b4a26c
...
@@ -2210,6 +2210,11 @@ static int sigreturn_restore(pid_t pid, CoreEntry *core)
...
@@ -2210,6 +2210,11 @@ static int sigreturn_restore(pid_t pid, CoreEntry *core)
current
->
nr_threads
,
current
->
nr_threads
,
KBYTES
(
restore_thread_vma_len
));
KBYTES
(
restore_thread_vma_len
));
/*
* Copy VMAs to private rst memory so that it's able to
* walk them and m(un|re)map.
*/
tgt_vmas
=
rst_mem_cpos
(
RM_PRIVATE
);
tgt_vmas
=
rst_mem_cpos
(
RM_PRIVATE
);
list_for_each_entry
(
vma
,
&
rst_vmas
.
h
,
list
)
{
list_for_each_entry
(
vma
,
&
rst_vmas
.
h
,
list
)
{
VmaEntry
*
vme
;
VmaEntry
*
vme
;
...
@@ -2221,6 +2226,11 @@ static int sigreturn_restore(pid_t pid, CoreEntry *core)
...
@@ -2221,6 +2226,11 @@ static int sigreturn_restore(pid_t pid, CoreEntry *core)
*
vme
=
vma
->
vma
;
*
vme
=
vma
->
vma
;
}
}
/*
* Copy tcp sockets fds to rst memory -- restorer will
* turn repair off before going sigreturn
*/
tcp_socks
=
rst_mem_cpos
(
RM_PRIVATE
);
tcp_socks
=
rst_mem_cpos
(
RM_PRIVATE
);
tcp_socks_mem
=
rst_mem_alloc
(
rst_tcp_socks_len
(),
RM_PRIVATE
);
tcp_socks_mem
=
rst_mem_alloc
(
rst_tcp_socks_len
(),
RM_PRIVATE
);
if
(
!
tcp_socks_mem
)
if
(
!
tcp_socks_mem
)
...
...
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