Tim Wojtulewicz
9b15db25f6
Reorder fields in some classes for more compact memory layout
2021-07-14 14:59:49 -07:00
Christian Kreibich
7bee79b400
Add optional bare-mode boolean flag to Supervisor's node configuration
...
When omitted, the node inherits the Supervisor's bare-mode
status. When true/false, the new Zeek node will enable/disable bare
mode, respectively. It continues to load any scripts passed at the
command line and in the additional scripts list already provided in
the node configuration.
Includes testcase.
2021-07-08 13:12:53 -07:00
Christian Kreibich
36051dc9a1
Add support for setting environment variables via supervisor
...
The NodeConfig record now has a table for specifying environment variable names
and values, which the supervisor sets in the created node.
This also repositions the cpu_affinity member to keep the order the same in
the corresponding script-layer and in-core types.
Includes testcase.
2021-07-08 13:12:53 -07:00
Tim Wojtulewicz
96d9115360
GH-1079: Use full paths starting with zeek/ when including files
2020-11-12 12:15:26 -07:00
Tim Wojtulewicz
fe0c22c789
Base: Clean up explicit uses of namespaces in places where they're not necessary.
...
This commit covers all of the common and base classes.
2020-08-24 12:07:00 -07:00
Jon Siwek
10709c627b
Add Supervisor::{stdout,stderr}_hook
...
These allow capturing/handling the stdout/stderr of child processes
via Zeek scripts.
2020-07-07 20:21:32 -07:00
Jon Siwek
a46e24091a
Move some supervisor structures to detail namespace
...
* StemHandle -> detail::SupervisorStemHandle
* SupervisedNode -> detail::SupervisedNode
* Supervisor::Node -> detail::SupervisorNode
2020-07-07 18:39:23 -07:00
Jon Siwek
9087621714
Improve default supervisor stdout/stderr handling
...
The stdout/stderr of child processes is now redirected over a pipe back
to the supervisor process so that it can prefix the output with
the name of the emitting node.
2020-07-07 18:39:23 -07:00
Jon Siwek
0acd5fea0c
Factor Supervisor initialization data to separate struct from Stem
2020-07-07 18:38:38 -07:00
Jon Siwek
d00b3a8daa
Move ParentProcessCheckTimer to detail namespace
2020-07-07 18:38:38 -07:00
Tim Wojtulewicz
ec9eff0bd5
Use type aliases for IntrusivePtr definitions
2020-06-30 20:37:30 -07:00
Tim Wojtulewicz
9364e6a5b7
Move IntrusivePtr and utility methods to the zeek namespace
2020-06-30 20:19:12 -07:00
Tim Wojtulewicz
4a1b39a2be
Move Flare/Pipe from the bro namespace to zeek::detail
2020-06-03 15:16:19 -07:00
Jon Siwek
094d6de979
Update all BIFs to return IntrusivePtr instead of Val*
2020-04-16 17:00:01 -07:00
Tim Wojtulewicz
c2375fc88d
Mark all timers as final
2020-04-03 15:20:19 -04:00
Tim Wojtulewicz
fd5e15b116
The Great Embooleanating
...
A large number of functions had return values and/or arguments changed
to use ``bool`` types instead of ``int``.
2020-03-31 06:41:54 +00:00
Tim Wojtulewicz
0cfb115c1b
Update Supervisor code for the new IOSource API
2020-01-31 10:13:10 -07:00
Jon Siwek
59e075acab
Move supervisor source files into supervisor/
2020-01-22 11:23:10 -08:00