diff svr-main.c @ 1210:64a50eac1030

Moved usingsyslog from svr_runopts to runopts.
author Konstantin Tokarev <ktokarev@smartlabs.tv>
date Tue, 01 Dec 2015 21:52:38 +0300
parents 2265d7ebfdeb
children 6ecc133fb2ee
line wrap: on
line diff
--- a/svr-main.c	Tue Dec 15 21:40:32 2015 +0800
+++ b/svr-main.c	Tue Dec 01 21:52:38 2015 +0300
@@ -145,7 +145,7 @@
 	if (svr_opts.forkbg) {
 		int closefds = 0;
 #ifndef DEBUG_TRACE
-		if (!svr_opts.usingsyslog) {
+		if (!opts.usingsyslog) {
 			closefds = 1;
 		}
 #endif
@@ -367,8 +367,8 @@
 
 	struct sigaction sa_chld;
 #ifndef DISABLE_SYSLOG
-	if (svr_opts.usingsyslog) {
 		startsyslog();
+	if (opts.usingsyslog) {
 	}
 #endif