mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-22 09:39:13 +00:00
rst: Create posix timers earlier
No failures should occur after sigchld restore. Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
aec951ec07
commit
7576fa2bdf
1 changed files with 6 additions and 6 deletions
|
|
@ -857,6 +857,12 @@ long __export_restore_task(struct task_restore_core_args *args)
|
|||
|
||||
restore_rlims(args);
|
||||
|
||||
ret = create_posix_timers(args);
|
||||
if (ret < 0) {
|
||||
pr_err("Can't restore posix timers %ld\n", ret);
|
||||
goto core_restore_end;
|
||||
}
|
||||
|
||||
pr_info("%ld: Restored\n", sys_getpid());
|
||||
|
||||
futex_set(&zombies_inprogress, args->nr_zombies);
|
||||
|
|
@ -884,12 +890,6 @@ long __export_restore_task(struct task_restore_core_args *args)
|
|||
|
||||
restore_finish_stage(CR_STATE_RESTORE_SIGCHLD);
|
||||
|
||||
ret = create_posix_timers(args);
|
||||
if (ret < 0) {
|
||||
pr_err("Can't restore posix timers %ld\n", ret);
|
||||
goto core_restore_end;
|
||||
}
|
||||
|
||||
rst_tcp_socks_all(args);
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue