mirror of
https://github.com/curl/curl.git
synced 2026-08-06 17:26:15 +03:00
eventfd: allow for all CPUs
After fixing support for x32, unlock eventfd support for all CPUs.
Before this patch, it was explicitly limited to 64-bit ones.
You can disable eventfs manually on systems where it's auto-detected:
- cmake: `-DHAVE_EVENTFD=0`
- configure: `export ac_cv_func_eventfd=0`
Ref: c2aa504ab9 #16239
Closes #16277
This commit is contained in:
parent
bf823397ba
commit
4d01de3529
4 changed files with 8 additions and 25 deletions
|
|
@ -1552,7 +1552,7 @@ CURLMcode curl_multi_wakeup(CURLM *m)
|
|||
and before cleanup */
|
||||
if(multi->wakeup_pair[1] != CURL_SOCKET_BAD) {
|
||||
while(1) {
|
||||
#ifdef USE_EVENTFD
|
||||
#ifdef HAVE_EVENTFD
|
||||
/* eventfd has a stringent rule of requiring the 8-byte buffer when
|
||||
calling write(2) on it */
|
||||
const uint64_t buf[1] = { 1 };
|
||||
|
|
@ -2873,7 +2873,7 @@ CURLMcode curl_multi_cleanup(CURLM *m)
|
|||
#else
|
||||
#ifdef ENABLE_WAKEUP
|
||||
wakeup_close(multi->wakeup_pair[0]);
|
||||
#ifndef USE_EVENTFD
|
||||
#ifndef HAVE_EVENTFD
|
||||
wakeup_close(multi->wakeup_pair[1]);
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue