diff options
-rw-r--r-- | dbutil.c | 4 | ||||
-rw-r--r-- | dbutil.h | 2 | ||||
-rw-r--r-- | svr-main.c | 2 |
3 files changed, 4 insertions, 4 deletions
@@ -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 */ @@ -31,7 +31,7 @@ #include "queue.h" #ifndef DISABLE_SYSLOG -void startsyslog(); +void startsyslog(const char *ident); #endif #ifdef __GNUC__ @@ -367,8 +367,8 @@ static void commonsetup() { struct sigaction sa_chld; #ifndef DISABLE_SYSLOG - startsyslog(); if (opts.usingsyslog) { + startsyslog(PROGNAME); } #endif |