Browse Source

Merge pull request #321 from switch-iot/fix_sn_daemon

fix build error for supernode when declared N2N_HAVE_DAEMON
pull/324/head
Luca Deri 4 years ago
committed by GitHub
parent
commit
8d76e7e576
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/sn.c

2
src/sn.c

@ -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.");

Loading…
Cancel
Save