修正fd在传入tfe后关闭导致异常退出的问题

This commit is contained in:
luqiuwen
2019-06-21 14:46:55 +08:00
parent ef9360fb3e
commit f4097ed2e1

View File

@@ -89,14 +89,14 @@ void acceptor_kni_v2_event(evutil_socket_t fd, short what, void * user)
if (unlikely(__cmsghdr == NULL))
{
TFE_LOG_ERROR(__ctx->logger, "failed at fetch CMSG_FIRSTHDR() from incoming fds.");
goto __die;
goto __drop_recieved_fds;
}
__fds = (int *) (CMSG_DATA(__cmsghdr));
if (unlikely(__fds == NULL))
{
TFE_LOG_ERROR(__ctx->logger, "failed at fetch CMSG_DATA() from incoming fds.");
goto __die;
goto __drop_recieved_fds;
}
/* Apply a cmsg structure */