mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 11:08:20 +00:00
Remove child program check, it's probably wrong given the test
failures it causes
This commit is contained in:
parent
ca8a8d5c8e
commit
53ab44c098
1 changed files with 0 additions and 7 deletions
|
@ -610,9 +610,6 @@ bool Raw::DoUpdate()
|
|||
break;
|
||||
|
||||
case MODE_STREAM:
|
||||
// mode may not be used to execute child programs
|
||||
assert(childpid == -1);
|
||||
|
||||
// Clear possible EOF condition
|
||||
if ( file )
|
||||
clearerr(file.get());
|
||||
|
@ -620,16 +617,12 @@ bool Raw::DoUpdate()
|
|||
// check if the file has changed
|
||||
struct stat sb;
|
||||
if ( stat(fname.c_str(), &sb) == -1 )
|
||||
{
|
||||
// File was removed
|
||||
break;
|
||||
}
|
||||
|
||||
// Is it the same file?
|
||||
if ( sb.st_ino == ino && sb.st_dev == dev )
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
// File was replaced
|
||||
FILE* tfile;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue