]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/epolldispatcher.cpp
update KDE guide link; added to the list of the 'Changes which are compatible' the...
[wxWidgets.git] / src / unix / epolldispatcher.cpp
index b5b7a8cce637ea71d59cab3bed05f7d205170e79..d42c4fea3b27c1380bdd0e4258dcac3b563f7783 100644 (file)
@@ -194,7 +194,11 @@ wxEpollDispatcher::DoPoll(epoll_event *events, int numEvents, int timeout) const
 bool wxEpollDispatcher::HasPending() const
 {
     epoll_event event;
-    return DoPoll(&event, 1, 0) == 1;
+
+    // NB: it's not really clear if epoll_wait() can return a number greater
+    //     than the number of events passed to it but just in case it can, use
+    //     >= instead of == here, see #10397
+    return DoPoll(&event, 1, 0) >= 1;
 }
 
 int wxEpollDispatcher::Dispatch(int timeout)