mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 22:58:20 +00:00
fix warning.
Update baseline of stderr test to what it should be. There still is a message ordering issue there (which is the last issue in the new Raw reader I know of). One message that sidesteps a bit of the usual processing does not always arrive at the correct time (meaning it pops up from the event queue too early). Even though it sidesteps a bit of the usual processing that should not happen in my opinion (which clearly does not matter). And I have not yet fully grasped how this can happen.
This commit is contained in:
parent
b39bffd9aa
commit
a32bb59770
2 changed files with 7 additions and 7 deletions
|
@ -359,9 +359,7 @@ int64_t Raw::GetLine(FILE* arg_file)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( errno == 0 ) {
|
if ( errno == EAGAIN || errno == EWOULDBLOCK || errno == EINTR ) {
|
||||||
assert(false);
|
|
||||||
} else if ( errno == EAGAIN || errno == EWOULDBLOCK || errno == EINTR ) {
|
|
||||||
return -2;
|
return -2;
|
||||||
} else {
|
} else {
|
||||||
// an error code we did no expect. This probably is bad.
|
// an error code we did no expect. This probably is bad.
|
||||||
|
@ -369,6 +367,9 @@ int64_t Raw::GetLine(FILE* arg_file)
|
||||||
return -3;
|
return -3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
InternalError("Internal control flow execution");
|
||||||
|
assert(false);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// write to the stdin of the child process
|
// write to the stdin of the child process
|
||||||
|
@ -546,7 +547,6 @@ bool Raw::DoUpdate()
|
||||||
EndCurrentSend();
|
EndCurrentSend();
|
||||||
|
|
||||||
SendEvent("InputRaw::process_finished", 4, vals);
|
SendEvent("InputRaw::process_finished", 4, vals);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
Process finished event
|
|
||||||
input
|
|
||||||
Exit code != 0
|
|
||||||
Input::EVENT_NEW
|
Input::EVENT_NEW
|
||||||
..:
|
..:
|
||||||
F
|
F
|
||||||
|
@ -25,3 +22,6 @@ T
|
||||||
done
|
done
|
||||||
End of Data event
|
End of Data event
|
||||||
input
|
input
|
||||||
|
Process finished event
|
||||||
|
input
|
||||||
|
Exit code != 0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue