asyn-thread: use wakeup_close to close the read descriptor
Reported-by: Dan Fandrich Ref: #12834 Closes #12836
This commit is contained in:
parent
e75a48d2c3
commit
8243ad6458
@ -581,7 +581,7 @@ static void destroy_async_data(struct Curl_async *async)
|
||||
* before the FD is invalidated to avoid EBADF on EPOLL_CTL_DEL
|
||||
*/
|
||||
Curl_multi_closed(data, sock_rd);
|
||||
sclose(sock_rd);
|
||||
wakeup_close(sock_rd);
|
||||
#endif
|
||||
}
|
||||
async->tdata = NULL;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user