From 632a609017340df7e1774e497dd07fd599219d5b Mon Sep 17 00:00:00 2001 From: luwenpeng Date: Tue, 27 Jul 2021 11:19:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86watchdog=E9=80=80=E5=87=BA=E7=9A=84?= =?UTF-8?q?=E5=87=BD=E6=95=B0=E4=BB=8Eexit()=E6=94=B9=E4=B8=BAabort()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- platform/src/watchdog_kni.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/src/watchdog_kni.cpp b/platform/src/watchdog_kni.cpp index 86d49b6..b467ef7 100644 --- a/platform/src/watchdog_kni.cpp +++ b/platform/src/watchdog_kni.cpp @@ -221,7 +221,7 @@ static void health_check_for_thread_worker(evutil_socket_t fd, short what, void if (temp + 2 + 2 + 1 < now.tv_sec) { TFE_LOG_ERROR(g_default_logger, "Watchdog thread nowtime %ld, Worker thread %d lastime %ld, Worker thread no reply, Exit ! ! ! ", now.tv_sec, proxy->work_threads[i]->thread_id, temp); - exit(-1); + abort(); } // TFE_LOG_DEBUG(g_default_logger, "Watchdog thread nowtime %ld, Worker thread %d lastime %lds ", now.tv_sec, proxy->work_threads[i]->thread_id, temp); }