Browse Source

asyn-thread: use wakeup_close to close the read descriptor

Reported-by: Dan Fandrich
Ref: #12834
Closes #12836
Daniel Stenberg 2 months ago
parent
commit
8243ad6458
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/asyn-thread.c

+ 1 - 1
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;