Commit 05466cc3 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

restorer: Pass current log level to the arguments

Will need it to honor current log level in restorer.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 3a00f4cd
...@@ -1337,6 +1337,7 @@ static int sigreturn_restore(pid_t pid, CoreEntry *core, struct list_head *tgt_v ...@@ -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 { ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment