mirror of
https://github.com/ntop/n2n.git
synced 2024-09-20 00:51:10 +02:00
Merge pull request #319 from switch-iot/fixlog
close syslog in function closeTraceFile
This commit is contained in:
commit
4939403fec
|
@ -86,6 +86,12 @@ void closeTraceFile() {
|
||||||
if (traceFile != NULL && traceFile != stdout) {
|
if (traceFile != NULL && traceFile != stdout) {
|
||||||
fclose(traceFile);
|
fclose(traceFile);
|
||||||
}
|
}
|
||||||
|
#ifndef WIN32
|
||||||
|
if (useSyslog && syslog_opened) {
|
||||||
|
closelog();
|
||||||
|
syslog_opened = 0;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#define N2N_TRACE_DATESIZE 32
|
#define N2N_TRACE_DATESIZE 32
|
||||||
|
|
Loading…
Reference in New Issue
Block a user