]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Log unlocked when doing cleanup
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 4 Jul 2019 14:14:08 +0000 (15:14 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 4 Jul 2019 14:14:08 +0000 (15:14 +0100)
src/rspamd.c

index 621ded94fd4a382af550089f310fd4f95cd17781..053b314a9a401ef42e80e3be1e2949ebbeb16c45 100644 (file)
@@ -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 */