diff svr-main.c @ 1211:6ecc133fb2ee

Allow setting syslog identifier via startsyslog().
author Konstantin Tokarev <ktokarev@smartlabs.tv>
date Tue, 01 Dec 2015 21:54:03 +0300
parents 64a50eac1030
children 2bb4c662d1c2
line wrap: on
line diff
--- a/svr-main.c	Tue Dec 01 21:52:38 2015 +0300
+++ b/svr-main.c	Tue Dec 01 21:54:03 2015 +0300
@@ -367,8 +367,8 @@
 
 	struct sigaction sa_chld;
 #ifndef DISABLE_SYSLOG
-		startsyslog();
 	if (opts.usingsyslog) {
+		startsyslog(PROGNAME);
 	}
 #endif