Tim Wojtulewicz
7c4fd382d9
Code modernization: Convert from deprecated C standard library headers
2022-06-27 09:47:31 -07:00
Tim Wojtulewicz
b2f171ec69
Reformat the world
2021-09-16 15:35:39 -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
Tim Wojtulewicz
8d2d867a65
Move everything in util.h to zeek::util namespace.
...
This commit includes renaming a number of methods prefixed with bro_ to be prefixed with zeek_.
2020-08-20 16:00:33 -07:00
Tim Wojtulewicz
bfab224d7c
Move Reporter to zeek namespace
2020-07-31 16:22:41 -04:00
Tim Wojtulewicz
4a1b39a2be
Move Flare/Pipe from the bro namespace to zeek::detail
2020-06-03 15:16:19 -07:00
Jon Siwek
fd2c6c56a5
Add checks for failed fcntl calls
2020-01-29 16:04:46 -08:00
Jon Siwek
aac7f6e8f2
Set Pipe file descriptor flags correctly
2020-01-29 16:03:12 -08:00
Jon Siwek
573e127672
Add supervisor node creation
2019-10-16 20:10:25 -07:00
Jon Siwek
52f7647f25
Add supervisor stem process auto-revival
2019-10-04 13:25:01 -07:00
Jon Siwek
4959d438fa
Initial structure for supervisor-mode
...
The full process hierarchy isn't set up yet, but these changes
help prepare by doing two things:
- Add a -j option to enable supervisor-mode. Currently, just a single
"stem" process gets forked early on to be used as the basis for
further forking into real cluster nodes.
- Separates the parsing of command-line options from their consumption.
i.e. need to parse whether we're in -j supervisor-mode before
modifying any global state since that would taint the "stem" process.
The new intermediate structure containing the parsed options may
also serve as a way to pass configuration info from "stem" to its
descendent cluster node processes.
2019-09-27 19:17:58 -07:00
Tim Wojtulewicz
c009cd3289
Handle failure of fcntl in Pipe. (Coverity 1241934, 1241935)
2019-09-16 10:56:41 -07:00
Johanna Amann
fc33bf2014
Make strerror_r portable.
...
This uses the same code that broker already uses to determine if we use
the XSI or gnu version of strerror_r. Patch by Thomas Petersen.
2017-09-18 14:50:30 -07:00
Jon Siwek
0921465297
Fix Pipe copy/assignment to make a copy of flags.
2014-09-03 16:23:13 -05:00
Jon Siwek
675fba3fde
Remove timeouts from remote communication loop.
...
The select() now blocks until there's work to do instead of relying on a
small timeout value which can cause unproductive use of cpu cycles.
2014-08-28 13:13:30 -05:00