Fixed non-portable changes in 91548850d9

Fixed waiting for empty fd_sets in test_empty_response.c and test_https_get_select.c
This commit is contained in:
Evgeny Grin (Karlson2k)
2017-03-12 22:37:29 +03:00
parent 01ea7c7805
commit 1c9fd1b90f
2 changed files with 16 additions and 6 deletions
+8 -3
View File
@@ -175,10 +175,15 @@ testExternalGet (int flags)
}
tv.tv_sec = 0;
tv.tv_usec = 1000;
if (-1 == select (maxposixs + 1, &rs, &ws, &es, &tv))
if (-1 != maxposixs)
{
if (EINTR != errno)
abort ();
if (-1 == select (maxposixs + 1, &rs, &ws, &es, &tv))
{
#ifdef MHD_POSIX_SOCKETS
if (EINTR != errno)
#endif /* MHD_POSIX_SOCKETS */
abort ();
}
}
curl_multi_perform (multi, &running);
if (running == 0)