]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
multi: use pipe instead of socketpair to *wakeup()
authorDaniel Stenberg <daniel@haxx.se>
Tue, 17 Oct 2023 06:28:55 +0000 (08:28 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 17 Oct 2023 13:29:31 +0000 (15:29 +0200)
If pipe() is present. Less overhead.

Closes #12142

lib/multi.c

index ff753ac8ce3a048f09cc7e9b465273e091383307..5ee331c7401a2b0430965c89882b14e3706b1650 100644 (file)
 #include "curl_memory.h"
 #include "memdebug.h"
 
-#ifdef __APPLE__
+#ifdef HAVE_PIPE
 
 #define wakeup_write  write
 #define wakeup_read   read
 #define wakeup_close  close
 #define wakeup_create pipe
 
-#else /* __APPLE__ */
+#else /* HAVE_PIPE */
 
 #define wakeup_write     swrite
 #define wakeup_read      sread