diff options
Diffstat (limited to 'lib/select.c')
-rw-r--r-- | lib/select.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/select.c b/lib/select.c index abb124ae8..3928b12dc 100644 --- a/lib/select.c +++ b/lib/select.c @@ -288,7 +288,7 @@ int Curl_socket_check(curl_socket_t readfd0, /* two sockets to read from */ } if(writefd != CURL_SOCKET_BAD) { pfd[num].fd = writefd; - pfd[num].events = POLLWRNORM|POLLOUT; + pfd[num].events = POLLWRNORM|POLLOUT|POLLPRI; pfd[num].revents = 0; num++; } @@ -316,7 +316,7 @@ int Curl_socket_check(curl_socket_t readfd0, /* two sockets to read from */ if(writefd != CURL_SOCKET_BAD) { if(pfd[num].revents & (POLLWRNORM|POLLOUT)) ret |= CURL_CSELECT_OUT; - if(pfd[num].revents & (POLLERR|POLLHUP|POLLNVAL)) + if(pfd[num].revents & (POLLERR|POLLHUP|POLLPRI|POLLNVAL)) ret |= CURL_CSELECT_ERR; } |