]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
asyn-thread: use wakeup_close to close the read descriptor
authorDaniel Stenberg <daniel@haxx.se>
Thu, 1 Feb 2024 08:36:19 +0000 (09:36 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 1 Feb 2024 12:42:48 +0000 (13:42 +0100)
Reported-by: Dan Fandrich
Ref: #12834
Closes #12836

lib/asyn-thread.c

index d4d382add9f7133164fe2a93314eb4a4fdf44f59..5b9d5049fc81f03e6e8ad8d64933d91d5efbab35 100644 (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;