mirror of
https://github.com/ntop/n2n.git
synced 2024-09-20 00:51:10 +02:00
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:
commit
8d76e7e576
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…
Reference in New Issue
Block a user