mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-28 21:07:43 +00:00
restorer: Pass current log level to the arguments
Will need it to honor current log level in restorer. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
3a00f4cdc8
commit
05466cc38a
@ -1337,6 +1337,7 @@ static int sigreturn_restore(pid_t pid, CoreEntry *core, struct list_head *tgt_v
|
|||||||
|
|
||||||
task_args->pid = pid;
|
task_args->pid = pid;
|
||||||
task_args->logfd = log_get_fd();
|
task_args->logfd = log_get_fd();
|
||||||
|
task_args->loglevel = log_get_loglevel();
|
||||||
task_args->sigchld_act = sigchld_act;
|
task_args->sigchld_act = sigchld_act;
|
||||||
task_args->fd_pages = fd_pages;
|
task_args->fd_pages = fd_pages;
|
||||||
|
|
||||||
|
@ -77,6 +77,7 @@ struct task_restore_core_args {
|
|||||||
int fd_exe_link; /* opened self->exe file */
|
int fd_exe_link; /* opened self->exe file */
|
||||||
int fd_pages; /* opened pages dump file */
|
int fd_pages; /* opened pages dump file */
|
||||||
int logfd;
|
int logfd;
|
||||||
|
unsigned int loglevel;
|
||||||
bool restore_threads; /* if to restore threads */
|
bool restore_threads; /* if to restore threads */
|
||||||
mutex_t rst_lock;
|
mutex_t rst_lock;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user