* fhandler_socket.cc (fhandler_socket::wait_for_events): Call
pthread_testcancel in case of timeout to enable pthread_cancel on waiting thread.
This commit is contained in:
@ -626,6 +626,8 @@ fhandler_socket::wait_for_events (const long event_mask, const DWORD flags)
|
||||
switch (WSAWaitForMultipleEvents (2, ev, FALSE, 50, FALSE))
|
||||
{
|
||||
case WSA_WAIT_TIMEOUT:
|
||||
pthread_testcancel ();
|
||||
/*FALLTHRU*/
|
||||
case WSA_WAIT_EVENT_0:
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user