Immediately apply broker subscriptions made during bro_init()

Otherwise that's begging for unit test failures due to races
This commit is contained in:
Jon Siwek 2018-08-10 17:12:53 -05:00
parent 083947af41
commit 67524f26d5
7 changed files with 24 additions and 5 deletions

View file

@ -66,6 +66,9 @@ public:
*/
void InitPostScript();
void BroInitDone()
{ after_bro_init = true; }
/**
* Shuts Broker down at termination.
*/
@ -404,6 +407,7 @@ private:
uint16_t bound_port;
bool reading_pcaps;
bool after_bro_init;
int peer_count;
Func* log_topic_func;