mirror of
https://github.com/curl/curl.git
synced 2026-07-23 03:27:16 +03:00
multi: add clarifying comment for wakeup_write()
Coverity raised it as a "suspicious sizeof". Closes #15600
This commit is contained in:
parent
4b07b7ebad
commit
c56dee6850
1 changed files with 3 additions and 0 deletions
|
|
@ -1541,6 +1541,9 @@ CURLMcode curl_multi_wakeup(CURLM *m)
|
|||
if(multi->wakeup_pair[1] != CURL_SOCKET_BAD) {
|
||||
#ifdef USE_EVENTFD
|
||||
buf = &val;
|
||||
/* eventfd has a stringent rule of requiring the 8-byte buffer when
|
||||
calling write(2) on it, which makes the sizeof(buf) below fine since
|
||||
this is only used on 64-bit systems and then the pointer is 64-bit */
|
||||
#else
|
||||
buf[0] = 1;
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue