From: Daniel Stenberg Date: Thu, 1 Feb 2024 08:36:19 +0000 (+0100) Subject: asyn-thread: use wakeup_close to close the read descriptor X-Git-Tag: curl-8_7_0~242 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8243ad6458544031a99a2f852c67138882bb363d;p=thirdparty%2Fcurl.git asyn-thread: use wakeup_close to close the read descriptor Reported-by: Dan Fandrich Ref: #12834 Closes #12836 --- diff --git a/lib/asyn-thread.c b/lib/asyn-thread.c index d4d382add9..5b9d5049fc 100644 --- a/lib/asyn-thread.c +++ b/lib/asyn-thread.c @@ -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;