Browse Source

fix build error for supernode when declared N2N_HAVE_DAEMON

pull/321/head
switch_st 4 years ago
parent
commit
e24ad06a24
  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 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.");

Loading…
Cancel
Save