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
commit 8d76e7e576
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -356,7 +356,7 @@ int main(int argc, char * const argv[]) {
#if defined(N2N_HAVE_DAEMON) #if defined(N2N_HAVE_DAEMON)
if(sss_node.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)) { if(-1 == daemon(0, 0)) {
traceEvent(TRACE_ERROR, "Failed to become daemon."); traceEvent(TRACE_ERROR, "Failed to become daemon.");