mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 17:18:20 +00:00
Tweaking writer API for failed rotations.
There are now two FinishedRotation() methods, one that triggers post-processing and one that doesn't. There's also insurance built in against a writer not calling either (or both), in which case we abort with an internal error.
This commit is contained in:
parent
4359bf6b42
commit
4ba038070f
12 changed files with 65 additions and 74 deletions
|
@ -113,6 +113,9 @@ std::string get_escaped_string(const std::string& str, bool escape_all)
|
|||
|
||||
char* copy_string(const char* s)
|
||||
{
|
||||
if ( ! s )
|
||||
return 0;
|
||||
|
||||
char* c = new char[strlen(s)+1];
|
||||
strcpy(c, s);
|
||||
return c;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue