Kernel: Fix bugs in select
Unix domain socket is now select readable when it has pending connection
This commit is contained in:
@@ -253,6 +253,8 @@ namespace Kernel
|
||||
if (m_info.has<ConnectionInfo>())
|
||||
{
|
||||
auto& connection_info = m_info.get<ConnectionInfo>();
|
||||
if (!connection_info.pending_connections.empty())
|
||||
return true;
|
||||
if (!connection_info.connection)
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user