From c574780d29dde43fbf8fdfc2e6465e98ff0f3e10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Wed, 2 Jul 2014 03:43:13 +0200 Subject: [PATCH] beos: drop @todo From the select(2) linux manpage: "nfds is the highest-numbered file descriptor in any of the three sets, plus 1." As sEventPipe[0] is definitely a descriptor, it must be 1 more here. --- beos/gui.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/beos/gui.cpp b/beos/gui.cpp index 9ecfbd0ff..d6bfc1e50 100644 --- a/beos/gui.cpp +++ b/beos/gui.cpp @@ -731,7 +731,6 @@ static void gui_poll(bool active) // our own event pipe FD_SET(sEventPipe[0], &read_fd_set); - /** @todo Check if this max_fd should have + 1 */ max_fd = MAX(max_fd, sEventPipe[0] + 1); // If there are pending events elsewhere, we should not be blocking