summaryrefslogtreecommitdiffstats
path: root/src/fuzzy_storage.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2010-07-19 15:14:46 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2010-07-19 15:14:46 +0400
commitc0b7a87e6aaa8dd90604d470ea6558ff53691e85 (patch)
tree10e5cfcb7160e48c595b11daa999d976e86e56e6 /src/fuzzy_storage.c
parentdec1abd6e4582b74b658db72a7071ce098d1c9e5 (diff)
downloadrspamd-c0b7a87e6aaa8dd90604d470ea6558ff53691e85.tar.gz
rspamd-c0b7a87e6aaa8dd90604d470ea6558ff53691e85.zip
* Reopen log file by USR1 signal
* Add reopenlog method to FreeBSD rc script
Diffstat (limited to 'src/fuzzy_storage.c')
-rw-r--r--src/fuzzy_storage.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c
index 7db272c11..e612e1d86 100644
--- a/src/fuzzy_storage.c
+++ b/src/fuzzy_storage.c
@@ -96,6 +96,9 @@ sig_handler (int signo, siginfo_t *info, void *unused)
#endif
{
switch (signo) {
+ case SIGUSR1:
+ reopen_log ();
+ break;
case SIGINT:
/* Ignore SIGINT as we should got SIGTERM after it anyway */
return;