mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Keep buffering state across file rotation (Justin Azoff)
Closes #207. From there: When files are rotated they lose their buffered flag, this is because File::Open only does a SetBuf? when it opens the file itself, but Rotate calls rotate_file to open the file.
This commit is contained in:
parent
4b91c79c03
commit
f228e32679
1 changed files with 2 additions and 3 deletions
|
@ -195,10 +195,9 @@ bool BroFile::Open(FILE* file)
|
|||
InstallRotateTimer();
|
||||
|
||||
if ( ! f )
|
||||
{
|
||||
f = fopen(name, access);
|
||||
|
||||
SetBuf(buffered);
|
||||
}
|
||||
|
||||
if ( f )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue