aboutsummaryrefslogtreecommitdiff
path: root/src/common/log.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2005-08-08 17:31:57 +0000
committerRoger Dingledine <arma@torproject.org>2005-08-08 17:31:57 +0000
commitf4eec180a2095779241434abed4615a2fc538d42 (patch)
tree55a6d50874fed5285487ac4d426f05186fc3a390 /src/common/log.c
parent2e918af35d5132ec32cf5bc081a01393524ffc99 (diff)
downloadtor-f4eec180a2095779241434abed4615a2fc538d42.tar
tor-f4eec180a2095779241434abed4615a2fc538d42.tar.gz
disarm a trap that's lying in wait for us
svn:r4741
Diffstat (limited to 'src/common/log.c')
-rw-r--r--src/common/log.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/log.c b/src/common/log.c
index 180c08a9f..d288d3f17 100644
--- a/src/common/log.c
+++ b/src/common/log.c
@@ -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
}
}