mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:41:40 +03:00
wakeup_create: use FD_CLOEXEC/SOCK_CLOEXEC
for `pipe()`/`socketpair()` Fixes #13618 Closes #13625
This commit is contained in:
parent
6eee810db4
commit
fd0d2ed74a
3 changed files with 41 additions and 5 deletions
|
|
@ -159,7 +159,7 @@ struct Curl_multi {
|
|||
WSAEVENT wsa_event; /* winsock event used for waits */
|
||||
#else
|
||||
#ifdef ENABLE_WAKEUP
|
||||
curl_socket_t wakeup_pair[2]; /* socketpair() used for wakeup
|
||||
curl_socket_t wakeup_pair[2]; /* pipe()/socketpair() used for wakeup
|
||||
0 is used for read, 1 is used for write */
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue