修正fd在传入tfe后关闭导致异常退出的问题
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user