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:
Ingo Weinhold 2008-04-25 01:11:59 +00:00
parent 210199c5a7
commit 98e94e0a76

View File

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