]> granicus.if.org Git - curl/commit
Curl_poll + Curl_wait_ms: fix timeout return value
authorPeter Wang <novalazy@gmail.com>
Tue, 29 Jul 2014 04:33:07 +0000 (06:33 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 11 Aug 2014 13:10:13 +0000 (15:10 +0200)
commit97d2e4bd75d1be26b48f37900b7b719c418e0ac6
treefe32345ae1e0036d93fa2a66f58466e5ddff8930
parent33a95659e200f443cfe1ef6f057f71e5afe16f9d
Curl_poll + Curl_wait_ms: fix timeout return value

Curl_poll and Curl_wait_ms require the fix applied to Curl_socket_check
in commits b61e8b8 and c771968:

When poll or select are interrupted and coincides with the timeout
elapsing, the functions return -1 indicating an error instead of 0 for
the timeout.
lib/select.c