]> git.ipfire.org Git - thirdparty/suricata.git/commit
output: clean file desc at exit. 925/head
authorEric Leblond <eric@regit.org>
Wed, 9 Apr 2014 13:04:45 +0000 (15:04 +0200)
committerEric Leblond <eric@regit.org>
Wed, 9 Apr 2014 13:09:09 +0000 (15:09 +0200)
commit9961520316bccaeee448dd20dae53496fa322d27
tree9678ded5d4c7b7796441e99ea76c8277857fb08d
parentd476c654eea7cfa47c31f1d0a9901c1759c2da5e
output: clean file desc at exit.

This is a beginning of implementation for bug #1660:
 https://redmine.openinfosecfoundation.org/issues/1160

This patch adds a cleaning function for each logger of new type
(packet, tx and file). These functions are called in RunModeShutDown().

The state of this patch is that it is crashing suricata when sending
pcap to analyse:
 - At first pcap if tx and file cleaning function are called
 - At second pcap if only packet cleaning function is called

The cause in first case is unknown. In second case this is due to
the necessity of cleaning the list of logger registered to a logging
type.
src/output-file.c
src/output-file.h
src/output-packet.c
src/output-packet.h
src/output-tx.c
src/output-tx.h
src/runmodes.c