summaryrefslogtreecommitdiffstats
path: root/syslogd.c
diff options
context:
space:
mode:
Diffstat (limited to 'syslogd.c')
-rw-r--r--syslogd.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/syslogd.c b/syslogd.c
index de588412..45423b36 100644
--- a/syslogd.c
+++ b/syslogd.c
@@ -4100,7 +4100,11 @@ static void freeSelectors(void)
f = Files;
while (f != NULL) {
/* flush any pending output */
- if (f->f_prevcount) {
+ /* TODO: the output module must handle this internally in the
+ * future - implement it when moving f_type out of selector_t
+ * rgerhards, 2007-07-24
+ */
+ if(f->f_type != F_FORW_UNKN && f->f_prevcount) {
fprintlog(f);
}