diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-07-06 19:08:15 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-07-06 19:08:15 +0100 |
commit | 52b4b8db0b126f7004d6aff79cbea3b06f94c927 (patch) | |
tree | aeed0cb84fc81a93133f0f817675a86b6cd62b53 /src/libserver/worker_util.h | |
parent | fd20fa9f63e72df66b2b702cde982f729f704480 (diff) | |
download | rspamd-52b4b8db0b126f7004d6aff79cbea3b06f94c927.tar.gz rspamd-52b4b8db0b126f7004d6aff79cbea3b06f94c927.zip |
[Rework] Send health checks from a single worker
Diffstat (limited to 'src/libserver/worker_util.h')
-rw-r--r-- | src/libserver/worker_util.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libserver/worker_util.h b/src/libserver/worker_util.h index b21a92bfc..5e33c940d 100644 --- a/src/libserver/worker_util.h +++ b/src/libserver/worker_util.h @@ -167,6 +167,16 @@ void rspamd_worker_session_cache_remove (void *cache, void *ptr); struct rspamd_worker *rspamd_fork_worker (struct rspamd_main *, struct rspamd_worker_conf *, guint idx, struct event_base *ev_base); +/** + * Initialise the main monitoring worker + * @param worker + * @param ev_base + * @param resolver + */ +void rspamd_worker_init_monitored (struct rspamd_worker *worker, + struct event_base *ev_base, + struct rspamd_dns_resolver *resolver); + #define msg_err_main(...) rspamd_default_log_function (G_LOG_LEVEL_CRITICAL, \ rspamd_main->server_pool->tag.tagname, rspamd_main->server_pool->tag.uid, \ G_STRFUNC, \ |