[CRIU] [PATCH 3/4] restorer: Pass current log level to the arguments

Cyrill Gorcunov gorcunov at openvz.org
Mon Sep 3 06:14:14 EDT 2012


Will need it to honor current log level in restorer.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 cr-restore.c       |    1 +
 include/restorer.h |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/cr-restore.c b/cr-restore.c
index ca4e6a4..d678647 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 d50a9c8..274459b 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;
 
-- 
1.7.7.6



More information about the CRIU mailing list