[Bro-Dev] #564: Bro silently quicks when filter for -f does not compile
Bro Tracker
bro at tracker.bro-ids.org
Thu Aug 25 10:58:59 PDT 2011
#564: Bro silently quicks when filter for -f does not compile
----------------------+------------------------
Reporter: gregor | Owner:
Type: Problem | Status: new
Priority: Normal | Milestone: Bro1.6
Component: Bro | Version: git/master
Resolution: | Keywords: BETA
----------------------+------------------------
Comment (by jsiwek):
I ran into this, too. It looks like an error is supposed to get reported
through the reporter framework but `packet-filter/main.bro` uses the
`exit()` BIF which exits Bro immediately so the event that would log the
error never gets drained. Changing it to use `terminate()` would get the
error logged in `reporter.log` when the reporter framework is loaded (it
is by default now) or stderr otherwise, but still exit with 0 status.
I think a better option is to expose `Reporter::FatalError` as a
`Reporter::fatal` BIF that can be used from a script to exit with non-zero
status and an stderr message. I'll commit a fix that does this, but I'm
open to other ideas.
--
Ticket URL: <http://tracker.bro-ids.org/bro/ticket/564#comment:1>
Bro Tracker <http://tracker.bro-ids.org/bro>
Bro Issue Tracker
More information about the bro-dev
mailing list