From 4f165239af405d06bf9c58d429d9a3fd6e56ee32 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zden=C4=9Bk=20Salvet?= Date: Wed, 22 Aug 2007 10:40:52 +0000 Subject: [PATCH] Use default progname in openlog, not edg-wl-... (also fixes notification interlogd's name). Fixes bug #28771. --- org.glite.lb.common/src/il_log.c | 2 +- org.glite.lb.logger/src/logd_proto.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(); } -- 1.8.2.3