asyn-thread: use wakeup_close to close the read descriptor

Reported-by: Dan Fandrich
Ref: #12834
Closes #12836
This commit is contained in:
Daniel Stenberg 2024-02-01 09:36:19 +01:00
parent e75a48d2c3
commit 8243ad6458
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

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