[Devel] [PATCH 05/12][user-cr] Add app_restart_args->ulogfd
Sukadev Bhattiprolu
sukadev at linux.vnet.ibm.com
Fri Mar 5 14:38:06 PST 2010
From: Sukadev Bhattiprolu <sukadev at linux.vnet.ibm.com>
Date: Thu, 4 Mar 2010 22:33:34 -0800
Subject: [PATCH 05/12][user-cr] Add app_restart_args->ulogfd
Add a 'ulogfd' field in struct app_restart_args so other callers of
app_restart() can also choose a file descriptor for the log messages
from app_restart().
Signed-off-by: Sukadev Bhattiprolu <sukadev at linux.vnet.ibm.com>
---
restart.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/restart.c b/restart.c
index 8513042..ac0acf3 100644
--- a/restart.c
+++ b/restart.c
@@ -386,6 +386,7 @@ struct app_restart_args {
char *freezer;
int infd;
int klogfd;
+ int ulogfd;
long warn;
int debug;
int verbose;
@@ -498,6 +499,7 @@ static void parse_args(struct app_restart_args *args, int argc, char *argv[])
args->wait = 1;
args->infd = -1;
args->klogfd = -1;
+ args->ulogfd = fileno(stdout);
args->warn = CKPT_COND_WARN;
args->fail = CKPT_COND_FAIL;
args->send_sigint = -1;
@@ -822,6 +824,7 @@ int app_restart(struct app_restart_args *args)
global_send_sigint = args->send_sigint;
global_debug = args->debug;
global_verbose = args->verbose;
+ global_ulogfd = args->ulogfd;
/* input file descriptor (default: stdin) */
if (args->infd >= 0) {
--
1.6.0.4
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
More information about the Devel
mailing list