commit 4fb70ed: [Minor] Log unlocked when doing cleanup

Vsevolod Stakhov vsevolod at highsecure.ru
Thu Jul 4 14:42:04 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-07-04 15:14:08 +0100
URL: https://github.com/rspamd/rspamd/commit/4fb70ed76f6afd6bc93c56712bc3db9915e43409

[Minor] Log unlocked when doing cleanup

---
 src/rspamd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 */


More information about the Commits mailing list