unix: accept() shouldn't return B_TIMEOUT but B_WOULD_BLOCK
it's already handled when breaking the loop. Change-Id: I47aa8105ff32e97aa4e1c0b2e9292e4516ee155a Reviewed-on: https://review.haiku-os.org/c/haiku/+/6456 Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
parent
fc13358aca
commit
b7d9790fc2
@ -419,7 +419,7 @@ UnixEndpoint::Accept(net_socket **_acceptedSocket)
|
||||
error = acquire_sem_etc(fAcceptSemaphore, 1,
|
||||
B_ABSOLUTE_TIMEOUT | B_CAN_INTERRUPT, timeout);
|
||||
if (error < B_OK)
|
||||
RETURN_ERROR(error);
|
||||
break;
|
||||
|
||||
locker.Lock();
|
||||
error = gSocketModule->dequeue_connected(socket, _acceptedSocket);
|
||||
|
Loading…
Reference in New Issue
Block a user