From 5a32b9ca276d3c6118dcf6abfb7a0b8f73c789eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B4=94=E4=B8=80=E9=B8=A3?= Date: Tue, 24 Sep 2019 21:09:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BF=9D=E6=B4=BB=E6=97=B6tf?= =?UTF-8?q?e=5Fid=E9=94=99=E8=AF=AF=E5=88=9D=E5=A7=8B=E5=8C=96=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/tfe_mgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entry/src/tfe_mgr.cpp b/entry/src/tfe_mgr.cpp index 3ba3287..2fa46bb 100644 --- a/entry/src/tfe_mgr.cpp +++ b/entry/src/tfe_mgr.cpp @@ -159,9 +159,9 @@ static void* thread_tfe_keepalive_accept(void *args){ char client_ipaddr_str[INET_ADDRSTRLEN] = ""; int flags, ret, client_fd; pthread_t thread_id = -1; - int tfe_id = -1; char *errmsg = NULL; while(true){ + int tfe_id = -1; client_fd = accept(sockfd, (struct sockaddr *)&client_addr, &client_addr_len); if(client_fd < 0){ KNI_LOG_ERROR(logger, "Failed at accept, errno is %d, errmsg is %s, tfe_id is %d", errno, strerror(errno), tfe_id);