将watchdog退出的函数从exit()改为abort()

This commit is contained in:
luwenpeng
2021-07-27 11:19:57 +08:00
parent 9745251b2a
commit 632a609017

View File

@@ -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);
}