mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
cluster/zeromq/connect: Make failures fatal
The cluster is borked if the initialization fails, so may as well just completely abort Zeek at that point with a fatal error. There's no real point in continuing to run.
This commit is contained in:
parent
a20a2fe6e0
commit
cf43cf1809
1 changed files with 6 additions and 2 deletions
|
@ -8,7 +8,11 @@ module Cluster::Backend::ZeroMQ;
|
||||||
event zeek_init() &priority=10
|
event zeek_init() &priority=10
|
||||||
{
|
{
|
||||||
if ( run_proxy_thread )
|
if ( run_proxy_thread )
|
||||||
Cluster::Backend::ZeroMQ::spawn_zmq_proxy_thread();
|
{
|
||||||
|
if ( ! Cluster::Backend::ZeroMQ::spawn_zmq_proxy_thread() )
|
||||||
|
Reporter::fatal("Failed to spawn ZeroMQ proxy thread");
|
||||||
|
}
|
||||||
|
|
||||||
Cluster::init();
|
if ( ! Cluster::init() )
|
||||||
|
Reporter::fatal("Failed initialize ZeroMQ backend");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue