aboutsummaryrefslogtreecommitdiffstats
path: root/src/worker.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-07-20 19:33:48 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-07-20 19:33:48 +0400
commitf86068d197719b8758fc0a2aeb8556526b2331f8 (patch)
tree99f59e943f7437dc9987bb9b9d6a23d1e12df6a1 /src/worker.c
parentacc1e657ead019fd3e0835cadddf4d39a7b9f181 (diff)
downloadrspamd-f86068d197719b8758fc0a2aeb8556526b2331f8.tar.gz
rspamd-f86068d197719b8758fc0a2aeb8556526b2331f8.zip
* Introduce new common system of map files, that can be used for different types of maps.
This includes new logic of callbacks and callbacks calling, files are monitored with evtimers with jittering. HTTP support would be included soon as well.
Diffstat (limited to 'src/worker.c')
-rw-r--r--src/worker.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/worker.c b/src/worker.c
index 01732135c..726f7fe00 100644
--- a/src/worker.c
+++ b/src/worker.c
@@ -35,6 +35,7 @@
#include "url.h"
#include "modules.h"
#include "message.h"
+#include "map.h"
#include <evdns.h>
@@ -367,6 +368,9 @@ start_worker (struct rspamd_worker *worker)
event_set(&worker->bind_ev, worker->cf->listen_sock, EV_READ | EV_PERSIST, accept_socket, (void *)worker);
event_add(&worker->bind_ev, NULL);
+ /* Maps events */
+ start_map_watch ();
+
/* Send SIGUSR2 to parent */
kill (getppid (), SIGUSR2);