Merge pull request #321 from switch-iot/fix_sn_daemon

fix build error for supernode when declared N2N_HAVE_DAEMON
This commit is contained in:
Luca Deri
2020-07-22 12:13:23 +02:00
committed by GitHub
+1 -1
View File
@@ -356,7 +356,7 @@ int main(int argc, char * const argv[]) {
#if defined(N2N_HAVE_DAEMON)
if(sss_node.daemon) {
useSyslog=1; /* traceEvent output now goes to syslog. */
setUseSyslog(1); /* traceEvent output now goes to syslog. */
if(-1 == daemon(0, 0)) {
traceEvent(TRACE_ERROR, "Failed to become daemon.");