mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 20:18:20 +00:00

* send end_of_data event for all kind of streams * send process_finished event containing exit code of child process for executed programs * move raw-tests to separate directory * expose name of input stream to readers * better handling of some error cases in raw reader * new force_kill option for raw reader which SIGKILLs progesses on exit The ordering of events how they arrive in the main loop is a bit peculiar at the moment. The process_finished event arrives in scriptland before all of the other events, even though it should be sent last. I have not yet fully figured that out.
17 lines
682 B
Text
17 lines
682 B
Text
##! Interface for the raw input reader.
|
|
|
|
module InputRaw;
|
|
|
|
export {
|
|
## Separator between input records.
|
|
## Please note that the separator has to be exactly one character long
|
|
const record_separator = "\n" &redef;
|
|
|
|
## Event that is called, when a process created by the raw reader exits.
|
|
##
|
|
## name: name of the input stream
|
|
## source: source of the input stream
|
|
## exit_code: exit code of the program, or number of the signal that forced the program to exit
|
|
## signal_exit: false when program exitted normally, true when program was forced to exit by a signal
|
|
global process_finished: event(name: string, source:string, exit_code:count, signal_exit:bool);
|
|
}
|