From 933b96f7a3fc826ab3534302c84e21cdffe63451 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20Voc=C5=AF?= Date: Thu, 7 Dec 2006 12:24:34 +0000 Subject: [PATCH] * make lazy the default mode --- org.glite.lb.logger/src/interlogd.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/org.glite.lb.logger/src/interlogd.c b/org.glite.lb.logger/src/interlogd.c index ef64a90..9e330be 100644 --- a/org.glite.lb.logger/src/interlogd.c +++ b/org.glite.lb.logger/src/interlogd.c @@ -54,7 +54,7 @@ static void usage (int status) " -b, --book send events to bookkeeping server only\n" " -l, --log-server specify address of log server\n" " -s, --socket non-default path of local socket\n" - " -L, --lazy [] be lazy when closing connections to servers\n" + " -L, --lazy [] be lazy when closing connections to servers (default, timeout==0 means turn lazy off)\n" , program_name, program_name); exit(status); } @@ -65,7 +65,7 @@ static int debug; static int verbose = 0; char *file_prefix = DEFAULT_PREFIX; int bs_only = 0; -int lazy_close = 0; +int lazy_close = 1; int default_close_timeout; char *cert_file = NULL; @@ -166,6 +166,10 @@ decode_switches (int argc, char **argv) lazy_close = 1; if(optarg) default_close_timeout = atoi(optarg); + if(default_close_timeout == 0) { + lazy_close = 0; + default_close_timeout = TIMEOUT; + } else default_close_timeout = TIMEOUT; break; -- 1.8.2.3