Skip to content
Snippets Groups Projects
Commit c5982733 authored by Konstantin Tokarev's avatar Konstantin Tokarev
Browse files

Allow setting syslog identifier via startsyslog().

parent 2d6bbf34
Branches
Tags
No related merge requests found
......@@ -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
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment