From: Zdeněk Salvet Date: Wed, 22 Aug 2007 10:40:52 +0000 (+0000) Subject: Use default progname in openlog, not edg-wl-... (also fixes notification X-Git-Tag: glite-lb-client_R_3_0_1_1~38 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=4f165239af405d06bf9c58d429d9a3fd6e56ee32;p=jra1mw.git Use default progname in openlog, not edg-wl-... (also fixes notification interlogd's name). Fixes bug #28771. --- diff --git a/org.glite.lb.common/src/il_log.c b/org.glite.lb.common/src/il_log.c index e3682a3..6e96007 100644 --- a/org.glite.lb.common/src/il_log.c +++ b/org.glite.lb.common/src/il_log.c @@ -24,7 +24,7 @@ il_log(int level, char *fmt, ...) } if(level <= LOG_ERR) { - openlog("edg-wl-interlogd", LOG_PID | LOG_CONS, LOG_DAEMON); + openlog(NULL, LOG_PID | LOG_CONS, LOG_DAEMON); syslog(level, "%s", err_text); closelog(); } diff --git a/org.glite.lb.logger/src/logd_proto.c b/org.glite.lb.logger/src/logd_proto.c index 6bbc328..4e1a1e3 100644 --- a/org.glite.lb.logger/src/logd_proto.c +++ b/org.glite.lb.logger/src/logd_proto.c @@ -649,7 +649,7 @@ void edg_wll_ll_log(int level, const char *fmt, ...) { if(level <= edg_wll_ll_log_level) fprintf(stderr, "[%d] %s", (int) getpid(), err_text); if(level <= LOG_ERR) { - openlog("edg-wl-logd", LOG_PID | LOG_CONS, LOG_DAEMON); + openlog(NULL, LOG_PID | LOG_CONS, LOG_DAEMON); syslog(level, "%s", err_text); closelog(); }