diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-07-04 15:14:08 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-07-04 15:14:08 +0100 |
commit | 4fb70ed76f6afd6bc93c56712bc3db9915e43409 (patch) | |
tree | 9388e3782a71b440cec0744954cb9e8074ed3588 | |
parent | 9732b42f533ae6eb7514e52e285ca065f9c5c070 (diff) | |
download | rspamd-4fb70ed76f6afd6bc93c56712bc3db9915e43409.tar.gz rspamd-4fb70ed76f6afd6bc93c56712bc3db9915e43409.zip |
[Minor] Log unlocked when doing cleanup
-rw-r--r-- | src/rspamd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rspamd.c b/src/rspamd.c index 621ded94f..053b314a9 100644 --- a/src/rspamd.c +++ b/src/rspamd.c @@ -1021,6 +1021,7 @@ rspamd_cld_handler (EV_P_ ev_child *w, struct rspamd_main *rspamd_main, wrk->pid); rspamd_check_core_limits (rspamd_main); rspamd_fork_delayed (wrk->cf, wrk->index, rspamd_main); + rspamd_log_lock (rspamd_main->logger); } else { msg_info_main ("do not respawn process %s after found terminated process with pid %P", @@ -1029,7 +1030,6 @@ rspamd_cld_handler (EV_P_ ev_child *w, struct rspamd_main *rspamd_main, } g_free (wrk); - rspamd_log_lock (rspamd_main->logger); } /* Control socket handler */ |