From: Sukadev Bhattiprolu <sukadev@xxxxxxxxxxxxxxxxxx> Date: Thu, 4 Mar 2010 22:33:34 -0800 Subject: [PATCH 03/14][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@xxxxxxxxxxxxxxxxxx> --- restart.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/restart.c b/restart.c index 9d16a4d..5ae5ec4 100644 --- a/restart.c +++ b/restart.c @@ -385,6 +385,7 @@ struct app_restart_args { char *freezer; int infd; int klogfd; + int ulogfd; long warn; int debug; int verbose; @@ -497,6 +498,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; no_pidns = 0; @@ -819,6 +821,7 @@ int app_restart(struct app_restart_args *args) 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@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linux-foundation.org/mailman/listinfo/containers