beos: Fix an oversight with number of fds for select()

curl_multi_fdset() does not include the +1 required
for select(), so we always need to add it.
This commit is contained in:
François Revol 2014-07-02 17:54:57 +02:00
parent 8848f754e0
commit 4073a991dd
1 changed files with 2 additions and 1 deletions

View File

@ -731,7 +731,8 @@ static void gui_poll(bool active)
// our own event pipe
FD_SET(sEventPipe[0], &read_fd_set);
max_fd = MAX(max_fd, sEventPipe[0] + 1);
// max of all the fds in the set, plus one for select()
max_fd = MAX(max_fd, sEventPipe[0]) + 1;
// If there are pending events elsewhere, we should not be blocking
if (!browser_reformat_pending) {