mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 08:38:20 +00:00
Add front-end name to InitMessage from WriterFrontend to Backend.
At the time WriterBackend::Init() happens, it's in a different thread than its frontend member, but tried to access it directly to get its name, that info is now sent in the InitMessage instead. (Problem was observed segfaulting the unit test scripts.base.frameworks.notice.mail-alarms on Ubuntu 12.04).
This commit is contained in:
parent
1bbd63970a
commit
41f1544332
3 changed files with 11 additions and 7 deletions
|
@ -53,9 +53,11 @@ public:
|
|||
* @param fields An array of size \a num_fields with the log fields.
|
||||
* The methods takes ownership of the array.
|
||||
*
|
||||
* @param frontend_name The name of the front-end writer implementation.
|
||||
*
|
||||
* @return False if an error occured.
|
||||
*/
|
||||
bool Init(string path, int num_fields, const threading::Field* const* fields);
|
||||
bool Init(string path, int num_fields, const threading::Field* const* fields, string frontend_name);
|
||||
|
||||
/**
|
||||
* Writes one log entry.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue