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:
parent
210199c5a7
commit
98e94e0a76
@ -613,6 +613,9 @@ UnixEndpoint::Receivable()
|
||||
|
||||
UnixEndpointLocker locker(this);
|
||||
|
||||
if (fState == UNIX_ENDPOINT_LISTENING)
|
||||
return gSocketModule->count_connected(socket);
|
||||
|
||||
if (fState != UNIX_ENDPOINT_CONNECTED)
|
||||
RETURN_ERROR(ENOTCONN);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user