diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2012-02-13 19:09:27 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2012-02-13 19:09:27 +0400 |
commit | 0d64c808b7310b6e233ec570649fbb281a3f2b13 (patch) | |
tree | bec667c9c350cc53dcd05e7779988486778c64c9 /src/main.c | |
parent | b5f2b43a8d1fc3361dc1665c62b2a44d66c01474 (diff) | |
download | rspamd-0d64c808b7310b6e233ec570649fbb281a3f2b13.tar.gz rspamd-0d64c808b7310b6e233ec570649fbb281a3f2b13.zip |
Add quarks to events to determine source of event inside rspamd.
Another try to fix threading.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c index bb6209974..502b1f0e1 100644 --- a/src/main.c +++ b/src/main.c @@ -382,6 +382,9 @@ fork_worker (struct rspamd_main *rspamd, struct worker_conf *cf) set_worker_limits (cf); setproctitle ("%s process", cf->worker->name); rspamd_pidfile_close (rspamd->pfh); + /* Do silent log reopen to avoid collisions */ + close_log (rspamd->logger); + open_log (rspamd->logger); msg_info ("starting %s process %P", cf->worker->name, getpid ()); cf->worker->worker_start_func (cur); break; |