if epoll support is not enabled, the function does nothing
this will be removed prior to actual release, but will be very useful in finding the last epoll bugs until then
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@55791
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
static gboolean ecore_fds_ready;
#endif
+void
+_ecore_fd_valid(void)
+{
+#ifdef HAVE_EPOLL
+ if (fcntl(epoll_fd, F_GETFD) < 0)
+ {
+ ERR("arghhh you caught me! report a backtrace to edevel!");
+ sleep(5);
+ }
+#endif
+}
+
#ifdef HAVE_EPOLL
static inline int
_ecore_get_epoll_fd(void)
}
fdh->references--;
+ _ecore_fd_valid();
fdh->read_active = EINA_FALSE;
fdh->write_active = EINA_FALSE;
EAPI void _ecore_magic_fail(const void *d, Ecore_Magic m, Ecore_Magic req_m, const char *fname);
void _ecore_time_init(void);
+void _ecore_fd_valid(void);
void _ecore_timer_shutdown(void);
void _ecore_timer_cleanup(void);