mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
disarm a trap that's lying in wait for us
svn:r4741
This commit is contained in:
+2
-1
@@ -307,9 +307,10 @@ static void close_log(logfile_t *victim)
|
||||
fclose(victim->file);
|
||||
} else if (victim->is_syslog) {
|
||||
#ifdef HAVE_SYSLOG_H
|
||||
if (--syslog_count == 0)
|
||||
if (--syslog_count == 0) {
|
||||
/* There are no other syslogs; close the logging facility. */
|
||||
closelog();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user