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
73e64bec
Commit
73e64bec
authored
Nov 08, 2011
by
Cyrill Gorcunov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
restorer: Setup task data via prctl
Signed-off-by:
Cyrill Gorcunov
<
gorcunov@gmail.com
>
parent
566a900e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
restorer.c
restorer.c
+12
-0
No files found.
restorer.c
View file @
73e64bec
...
...
@@ -315,6 +315,18 @@ self_len_end:
sys_close
(
fd_core
);
/*
* Tune up the task fields.
*/
sys_prctl
(
PR_SET_NAME
,
(
long
)
core_entry
.
task_comm
,
0
,
0
,
0
);
sys_prctl
(
PR_CKPT_CTL
,
PR_CKPT_CTL_SET_MM_START_CODE
,
(
long
)
core_entry
.
mm_start_code
,
0
,
0
);
sys_prctl
(
PR_CKPT_CTL
,
PR_CKPT_CTL_SET_MM_END_CODE
,
(
long
)
core_entry
.
mm_end_code
,
0
,
0
);
sys_prctl
(
PR_CKPT_CTL
,
PR_CKPT_CTL_SET_MM_START_DATA
,
(
long
)
core_entry
.
mm_start_data
,
0
,
0
);
sys_prctl
(
PR_CKPT_CTL
,
PR_CKPT_CTL_SET_MM_END_DATA
,
(
long
)
core_entry
.
mm_end_data
,
0
,
0
);
sys_prctl
(
PR_CKPT_CTL
,
PR_CKPT_CTL_SET_MM_START_STACK
,
(
long
)
core_entry
.
mm_start_stack
,
0
,
0
);
sys_prctl
(
PR_CKPT_CTL
,
PR_CKPT_CTL_SET_MM_START_BRK
,
(
long
)
core_entry
.
mm_start_brk
,
0
,
0
);
sys_prctl
(
PR_CKPT_CTL
,
PR_CKPT_CTL_SET_MM_BRK
,
(
long
)
core_entry
.
mm_brk
,
0
,
0
);
/*
* We need to prepare a valid sigframe here, so
* after sigreturn the kernel will pick up the
...
...
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