From 0508918f144f978e00595d73cb959b4cfc3a03e7 Mon Sep 17 00:00:00 2001 From: yahua Date: Tue, 4 Mar 2025 17:23:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dfork=E6=97=B6=E8=BF=9B?= =?UTF-8?q?=E7=A8=8B=E5=8D=A1=E6=AD=BB=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复某些场景下fork时,日志输出导致进程卡死 https://github.com/dianping/cat/issues/2363 --- lib/c/src/ccat/client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/c/src/ccat/client.c b/lib/c/src/ccat/client.c index 9efed2a45c..c4efbd283c 100644 --- a/lib/c/src/ccat/client.c +++ b/lib/c/src/ccat/client.c @@ -102,11 +102,11 @@ static void catClientInitInnerForked() { // Disable the heartbeat if the process is forked from another thread. g_config.enableHeartbeat = 0; - INNER_LOG(CLOG_INFO, "Master process has been forked, heartbeat will be disabled."); + // INNER_LOG(CLOG_INFO, "Master process has been forked, heartbeat will be disabled."); if (g_config.enableAutoInitialize) { catClientInitInner(); - INNER_LOG(CLOG_INFO, "All cat threads has been reestablished automatically."); + // INNER_LOG(CLOG_INFO, "All cat threads has been reestablished automatically."); } }