mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-29 04:09:31 +03:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user