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;
|
break;
|
||||||
|
|
||||||
case MODE_STREAM:
|
case MODE_STREAM:
|
||||||
// mode may not be used to execute child programs
|
|
||||||
assert(childpid == -1);
|
|
||||||
|
|
||||||
// Clear possible EOF condition
|
// Clear possible EOF condition
|
||||||
if ( file )
|
if ( file )
|
||||||
clearerr(file.get());
|
clearerr(file.get());
|
||||||
|
@ -620,16 +617,12 @@ bool Raw::DoUpdate()
|
||||||
// check if the file has changed
|
// check if the file has changed
|
||||||
struct stat sb;
|
struct stat sb;
|
||||||
if ( stat(fname.c_str(), &sb) == -1 )
|
if ( stat(fname.c_str(), &sb) == -1 )
|
||||||
{
|
|
||||||
// File was removed
|
// File was removed
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
|
|
||||||
// Is it the same file?
|
// Is it the same file?
|
||||||
if ( sb.st_ino == ino && sb.st_dev == dev )
|
if ( sb.st_ino == ino && sb.st_dev == dev )
|
||||||
{
|
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
|
|
||||||
// File was replaced
|
// File was replaced
|
||||||
FILE* tfile;
|
FILE* tfile;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue