diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-05-10 19:15:03 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-05-10 19:15:03 +0400 |
commit | 1fd435e5d4fc3c51fae8a1a184b347bdf6039d26 (patch) | |
tree | f17ee669ea0d5bfa497b3c952e8d7bed9885501a /src/fuzzy_storage.c | |
parent | 683b90f4c6c744557f7429ce6ff77c0f7d2175e1 (diff) | |
download | rspamd-1fd435e5d4fc3c51fae8a1a184b347bdf6039d26.tar.gz rspamd-1fd435e5d4fc3c51fae8a1a184b347bdf6039d26.zip |
* Rework build process:
- add librspamdserver
- link this library to all daemons and utils of rspamd
- use subdirectories more often
* Rework global variables logic - move them to the main process
* Fix logging to handle utf-8 correctly
* Add statshow utility and make it working
* Move printf functions to separate source file
Diffstat (limited to 'src/fuzzy_storage.c')
-rw-r--r-- | src/fuzzy_storage.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c index 344a0e345..45f24b950 100644 --- a/src/fuzzy_storage.c +++ b/src/fuzzy_storage.c @@ -103,7 +103,7 @@ sig_handler (gint signo, siginfo_t *info, void *unused) { switch (signo) { case SIGUSR1: - reopen_log (); + reopen_log (rspamd_main->logger); break; case SIGINT: case SIGTERM: @@ -264,7 +264,6 @@ sigusr_handler (gint fd, short what, void *arg) event_del (&worker->sig_ev); event_del (&worker->bind_ev); close (worker->cf->listen_sock); - do_reopen_log = 1; msg_info ("worker's shutdown is pending in %d sec", SOFT_SHUTDOWN_TIME); event_loopexit (&tv); mods = ctx->max_mods + 1; |