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
2030f2df
Commit
2030f2df
authored
Jul 01, 2013
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
timers: Unmap posix timers info mem after restoring them
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
f8464fda
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
1 deletion
+6
-1
cr-restore.c
cr-restore.c
+1
-0
restorer.h
include/restorer.h
+2
-1
restorer.c
pie/restorer.c
+3
-0
No files found.
cr-restore.c
View file @
2030f2df
...
...
@@ -2094,6 +2094,7 @@ static int sigreturn_restore(pid_t pid, CoreEntry *core)
}
task_args
->
timer_n
=
posix_timers_nr
;
task_args
->
posix_timers
=
posix_timers_info_chunk
;
task_args
->
timers_sz
=
posix_timers_size
;
/*
* Get a reference to shared memory area which is
...
...
include/restorer.h
View file @
2030f2df
...
...
@@ -129,8 +129,9 @@ struct task_restore_core_args {
struct
itimerval
itimers
[
3
];
int
timer_n
;
int
timer_n
;
struct
restore_posix_timer
*
posix_timers
;
unsigned
long
timers_sz
;
CredsEntry
creds
;
uint32_t
cap_inh
[
CR_CAP_SIZE
];
...
...
pie/restorer.c
View file @
2030f2df
...
...
@@ -519,6 +519,9 @@ static void restore_posix_timers(struct task_restore_core_args *args)
rt
=
&
args
->
posix_timers
[
i
];
sys_timer_settime
((
timer_t
)
rt
->
spt
.
it_id
,
0
,
&
rt
->
val
,
NULL
);
}
if
(
args
->
timer_n
)
sys_munmap
(
args
->
posix_timers
,
args
->
timers_sz
);
}
/*
...
...
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