mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 02:58:20 +00:00
Immediately apply broker subscriptions made during bro_init()
Otherwise that's begging for unit test failures due to races
This commit is contained in:
parent
083947af41
commit
67524f26d5
7 changed files with 24 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue