Merge pull request #319 from switch-iot/fixlog

close syslog in function closeTraceFile
This commit is contained in:
Luca Deri 2020-07-22 12:12:02 +02:00 committed by GitHub
commit 4939403fec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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