diff options
| author | luwenpeng <[email protected]> | 2021-07-27 11:19:57 +0800 |
|---|---|---|
| committer | luwenpeng <[email protected]> | 2021-07-27 11:19:57 +0800 |
| commit | 632a609017340df7e1774e497dd07fd599219d5b (patch) | |
| tree | 6c6221beae69d66141217010f0bb44b0f24bb960 | |
| parent | 9745251b2aff9fac176e0443acd95a9bf33d592c (diff) | |
将watchdog退出的函数从exit()改为abort()v4.5.5-202107
| -rw-r--r-- | platform/src/watchdog_kni.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |
