mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 14:08:20 +00:00
Added a missing fclose in scan.l
On OS X, Bro was failing to startup without first using the "ulimit -n" command to increase the allowed number of open files (OS X has a much lower default limit than Linux or FreeBSD).
This commit is contained in:
parent
2cfe2c292d
commit
b3a7d07e66
1 changed files with 5 additions and 0 deletions
|
@ -599,7 +599,12 @@ static int load_files(const char* orig_file)
|
||||||
ino_t i = get_inode_num(f, file_path);
|
ino_t i = get_inode_num(f, file_path);
|
||||||
|
|
||||||
if ( already_scanned(i) )
|
if ( already_scanned(i) )
|
||||||
|
{
|
||||||
|
if ( f != stdin )
|
||||||
|
fclose(f);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
ScannedFile sf(i, file_stack.length(), file_path);
|
ScannedFile sf(i, file_stack.length(), file_path);
|
||||||
files_scanned.push_back(sf);
|
files_scanned.push_back(sf);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue