zeek/scripts/base/frameworks/logging
Robin Sommer 38e1dc9ca4 Support for cleaning up threads that have terminated.
Once a BasicThread leaves its run() method, a thread is now marked for
cleaning up, and the ThreadMgr will soon join it to release the OS
resources.

Also, adding a function Log::remove_stream() that remove a logging
stream, stopping all writer threads that are associated with it.

Note, however, that removing a *filter* from a stream still doesn't
clean up any threads. The problem is that because of the output paths
potentially being created dynamically it's unclear if the writer
thread will still be needed in the future. We could add clean writers
up with timeouts, but that doesn't sound great either. So for now, the
only way to sure clean up logging threads is to remove the entire
stream.

Also note that cleanup doesn't work with input threads yet, which
don't seem to terminate (at least in the case I tried).
2013-03-14 14:59:05 -07:00
..
postprocessors Merge remote-tracking branch 'origin/topic/script-reference' 2012-01-10 14:00:44 -08:00
writers Merge remote-tracking branch 'origin/master' into topic/bernhard/input-logging-commmon-functions 2012-12-13 11:22:58 -08:00
__load__.bro Bringing elasticsearch branch up to date with master. 2012-07-09 16:38:05 -04:00
main.bro Support for cleaning up threads that have terminated. 2013-03-14 14:59:05 -07:00