* src/android.c (android_select): If the event queue isn't
empty upon the initial check, clear all fdsets.
if (event_queue.num_events)
{
+ /* Zero READFDS, WRITEFDS and EXCEPTFDS, lest the caller
+ mistakenly interpret this return value as indicating that an
+ inotify file descriptor is readable, and try to poll an
+ unready one. */
+
+ if (readfds)
+ FD_ZERO (readfds);
+
+ if (writefds)
+ FD_ZERO (writefds);
+
+ if (exceptfds)
+ FD_ZERO (exceptfds);
pthread_mutex_unlock (&event_queue.mutex);
return 1;
}