diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-02-20 13:20:30 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-02-20 13:20:30 +0000 |
commit | d623fcbcf0ec66e0e0f1830993ecd03a585b2451 (patch) | |
tree | 6453ddc9ef12ae18ff6b2eae0dc4be7781144b13 /src/rspamd.c | |
parent | 11c49dc9ac730bdaa2f6b26ff877b9ba87f38572 (diff) | |
download | rspamd-d623fcbcf0ec66e0e0f1830993ecd03a585b2451.tar.gz rspamd-d623fcbcf0ec66e0e0f1830993ecd03a585b2451.zip |
[Minor] Create context for the main process
Diffstat (limited to 'src/rspamd.c')
-rw-r--r-- | src/rspamd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rspamd.c b/src/rspamd.c index 85191e949..ecf782864 100644 --- a/src/rspamd.c +++ b/src/rspamd.c @@ -1489,6 +1489,9 @@ main (gint argc, gchar **argv, gchar **env) spawn_workers (rspamd_main, ev_base); rspamd_mempool_unlock_mutex (rspamd_main->start_mtx); + rspamd_main->http_ctx = rspamd_http_context_create (rspamd_main->cfg, + ev_base); + if (control_fd != -1) { msg_info_main ("listening for control commands on %s", rspamd_inet_address_to_string (control_addr)); |