diff --git a/dbutil.c b/dbutil.c index d87835b..7c7c069 100644 --- a/dbutil.c +++ b/dbutil.c @@ -84,9 +84,9 @@ int debug_trace = 0; #endif #ifndef DISABLE_SYSLOG -void startsyslog() { +void startsyslog(const char *ident) { - openlog(PROGNAME, LOG_PID, LOG_AUTHPRIV); + openlog(ident, LOG_PID, LOG_AUTHPRIV); } #endif /* DISABLE_SYSLOG */ diff --git a/dbutil.h b/dbutil.h index e1db328..098563d 100644 --- a/dbutil.h +++ b/dbutil.h @@ -31,7 +31,7 @@ #include "queue.h" #ifndef DISABLE_SYSLOG -void startsyslog(); +void startsyslog(const char *ident); #endif #ifdef __GNUC__ diff --git a/svr-main.c b/svr-main.c index 8bd1a78..af56a7c 100644 --- a/svr-main.c +++ b/svr-main.c @@ -367,8 +367,8 @@ static void commonsetup() { struct sigaction sa_chld; #ifndef DISABLE_SYSLOG - startsyslog(); if (opts.usingsyslog) { + startsyslog(PROGNAME); } #endif