[Devel] [PATCH 04/14][user-cr] Add app_restart_args->uerrfd
Sukadev Bhattiprolu
sukadev at linux.vnet.ibm.com
Thu Mar 18 23:32:26 PDT 2010
From: Sukadev Bhattiprolu <sukadev at linux.vnet.ibm.com>
Date: Thu, 4 Mar 2010 22:36:31 -0800
Subject: [PATCH 04/14][user-cr] Add app_restart_args->uerrfd
Add a 'uerrfd' field in struct app_restart_args so other callers of
app_restart() can also choose a file descriptor for the error 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 5ae5ec4..b526bbd 100644
--- a/restart.c
+++ b/restart.c
@@ -386,6 +386,7 @@ struct app_restart_args {
int infd;
int klogfd;
int ulogfd;
+ int uerrfd;
long warn;
int debug;
int verbose;
@@ -499,6 +500,7 @@ static void parse_args(struct app_restart_args *args, int argc, char *argv[])
args->infd = -1;
args->klogfd = -1;
args->ulogfd = fileno(stdout);
+ args->uerrfd = fileno(stderr);
args->warn = CKPT_COND_WARN;
args->fail = CKPT_COND_FAIL;
no_pidns = 0;
@@ -822,6 +824,7 @@ int app_restart(struct app_restart_args *args)
global_debug = args->debug;
global_verbose = args->verbose;
global_ulogfd = args->ulogfd;
+ global_uerrfd = args->uerrfd;
/* 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