Browse Source

Merge pull request #319 from switch-iot/fixlog

close syslog in function closeTraceFile
pull/324/head
Luca Deri 4 years ago
committed by GitHub
parent
commit
4939403fec
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/n2n.c

6
src/n2n.c

@ -86,6 +86,12 @@ void closeTraceFile() {
if (traceFile != NULL && traceFile != stdout) {
fclose(traceFile);
}
#ifndef WIN32
if (useSyslog && syslog_opened) {
closelog();
syslog_opened = 0;
}
#endif
}
#define N2N_TRACE_DATESIZE 32

Loading…
Cancel
Save