From 05466cc38ad8e29cfc99f30ff32cd3e743abdfcc Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Mon, 3 Sep 2012 14:44:09 +0400 Subject: [PATCH] restorer: Pass current log level to the arguments Will need it to honor current log level in restorer. Signed-off-by: Cyrill Gorcunov Signed-off-by: Pavel Emelyanov --- cr-restore.c | 1 + include/restorer.h | 1 + 2 files changed, 2 insertions(+) diff --git a/cr-restore.c b/cr-restore.c index ca4e6a477..d678647de 100644 --- a/cr-restore.c +++ b/cr-restore.c @@ -1337,6 +1337,7 @@ static int sigreturn_restore(pid_t pid, CoreEntry *core, struct list_head *tgt_v task_args->pid = pid; task_args->logfd = log_get_fd(); + task_args->loglevel = log_get_loglevel(); task_args->sigchld_act = sigchld_act; task_args->fd_pages = fd_pages; diff --git a/include/restorer.h b/include/restorer.h index d50a9c897..274459b73 100644 --- a/include/restorer.h +++ b/include/restorer.h @@ -77,6 +77,7 @@ struct task_restore_core_args { int fd_exe_link; /* opened self->exe file */ int fd_pages; /* opened pages dump file */ int logfd; + unsigned int loglevel; bool restore_threads; /* if to restore threads */ mutex_t rst_lock;