From: Michal Voců Date: Thu, 7 Dec 2006 12:24:34 +0000 (+0000) Subject: * make lazy the default mode X-Git-Tag: glite-lb-logger_R_1_2_3~2 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=933b96f7a3fc826ab3534302c84e21cdffe63451;p=jra1mw.git * make lazy the default mode --- 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;