summaryrefslogtreecommitdiffstats
path: root/src/lmtp.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-05-10 19:15:03 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-05-10 19:15:03 +0400
commit1fd435e5d4fc3c51fae8a1a184b347bdf6039d26 (patch)
treef17ee669ea0d5bfa497b3c952e8d7bed9885501a /src/lmtp.c
parent683b90f4c6c744557f7429ce6ff77c0f7d2175e1 (diff)
downloadrspamd-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/lmtp.c')
-rw-r--r--src/lmtp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lmtp.c b/src/lmtp.c
index d92656fad..043c78485 100644
--- a/src/lmtp.c
+++ b/src/lmtp.c
@@ -48,7 +48,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:
@@ -70,7 +70,6 @@ sigusr_handler (gint fd, short what, void *arg)
tv.tv_usec = 0;
event_del (&worker->sig_ev);
event_del (&worker->bind_ev);
- do_reopen_log = 1;
msg_info ("lmtp worker's shutdown is pending in %d sec", SOFT_SHUTDOWN_TIME);
event_loopexit (&tv);
return;