summaryrefslogtreecommitdiff
path: root/beos
diff options
context:
space:
mode:
authorFran├žois Revol <revol@free.fr>2014-07-02 17:54:57 +0200
committerFran├žois Revol <revol@free.fr>2014-07-02 17:54:57 +0200
commit4073a991ddb92adb3eb0d91d3cbc11f97807c0cb (patch)
tree9ff3363dfee0763b81ccb43bfe96d276706d797e /beos
parent8848f754e07264a8b358c34048d84139660291d1 (diff)
downloadnetsurf-4073a991ddb92adb3eb0d91d3cbc11f97807c0cb.tar.gz
netsurf-4073a991ddb92adb3eb0d91d3cbc11f97807c0cb.tar.bz2
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.
Diffstat (limited to 'beos')
-rw-r--r--beos/gui.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/beos/gui.cpp b/beos/gui.cpp
index d6bfc1e50..eee56d8c6 100644
--- a/beos/gui.cpp
+++ b/beos/gui.cpp
@@ -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) {