For sockets in listening mode the read_avail() apparently has to return
something. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25142 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -613,6 +613,9 @@ UnixEndpoint::Receivable()
|
|||||||
|
|
||||||
UnixEndpointLocker locker(this);
|
UnixEndpointLocker locker(this);
|
||||||
|
|
||||||
|
if (fState == UNIX_ENDPOINT_LISTENING)
|
||||||
|
return gSocketModule->count_connected(socket);
|
||||||
|
|
||||||
if (fState != UNIX_ENDPOINT_CONNECTED)
|
if (fState != UNIX_ENDPOINT_CONNECTED)
|
||||||
RETURN_ERROR(ENOTCONN);
|
RETURN_ERROR(ENOTCONN);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user