mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 23:28:20 +00:00
Clean up triggers awaiting global state modification at shutdown
Otherwise they can be reported as memory leaks since no more global state modifications will take place to notify the trigger to clean itself up.
This commit is contained in:
parent
5e73949327
commit
9e494452f1
5 changed files with 49 additions and 0 deletions
|
@ -62,6 +62,10 @@ public:
|
|||
// later to avoid race conditions.
|
||||
void Modified(notifier::Modifiable* m) override
|
||||
{ QueueTrigger(this); }
|
||||
// Overridden from notifer::Receiver. If we're still waiting
|
||||
// on an ID/Val to be modified at termination time, we can't hope
|
||||
// for any further progress to be made, so just Unref ourselves.
|
||||
void Terminate() override;
|
||||
|
||||
const char* Name() const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue