Kernel: Fix bugs in select

Unix domain socket is now select readable when it has pending
connection
This commit is contained in:
2024-02-12 23:46:27 +02:00
parent 9314528b9b
commit 2ab3eb4109
2 changed files with 24 additions and 7 deletions

View File

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