When there are no expressions to compile it is possible that hs_helper
will send notice to no workers. So this sleep should resolve the most of
cases where this race occurs.
msg_info ("compiled %d regular expressions to the hyperscan tree",
ncompiled);
+ /*
+ * Do not send notification unless all other workers are started
+ * XXX: now we just sleep for 5 seconds to ensure that
+ */
+ sleep (5);
+
srv_cmd.type = RSPAMD_SRV_HYPERSCAN_LOADED;
srv_cmd.cmd.hs_loaded.cache_dir = ctx->hs_dir;