diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-10-12 12:13:16 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-10-12 12:13:16 +0100 |
commit | b1ea0670ad1309160d4b6f2758e12dc3dc04ac9d (patch) | |
tree | 2c707f15a009a3824ea263d93d4fcd561a36a82b /src/libserver/worker_util.c | |
parent | 783f85f3df791a3f948acd9554094d7b352a8d9b (diff) | |
download | rspamd-b1ea0670ad1309160d4b6f2758e12dc3dc04ac9d.tar.gz rspamd-b1ea0670ad1309160d4b6f2758e12dc3dc04ac9d.zip |
Implement basic stats support.
Diffstat (limited to 'src/libserver/worker_util.c')
-rw-r--r-- | src/libserver/worker_util.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libserver/worker_util.c b/src/libserver/worker_util.c index 2db047afe..02be93d8f 100644 --- a/src/libserver/worker_util.c +++ b/src/libserver/worker_util.c @@ -29,6 +29,7 @@ #include "unix-std.h" #include "utlist.h" #include "ottery.h" +#include "rspamd_control.h" #ifdef WITH_GPERF_TOOLS #include <google/profiler.h> @@ -246,6 +247,7 @@ rspamd_prepare_worker (struct rspamd_worker *worker, const char *name, ev_base = event_init (); rspamd_worker_init_signals (worker, ev_base); + rspamd_control_worker_add_default_handler (worker, ev_base); /* Accept all sockets */ cur = worker->cf->listen_socks; @@ -469,6 +471,7 @@ rspamd_fork_worker (struct rspamd_main *rspamd_main, /* Do silent log reopen to avoid collisions */ rspamd_log_close (rspamd_main->logger); rspamd_log_open (rspamd_main->logger); + cur->start_time = rspamd_get_calendar_ticks (); #if ((GLIB_MAJOR_VERSION == 2) && (GLIB_MINOR_VERSION <= 30)) # if (GLIB_MINOR_VERSION > 20) |