From: raster Date: Tue, 27 Apr 2010 23:53:08 +0000 (+0000) Subject: better debug/error output for foreign fd issues. X-Git-Tag: 2.0_alpha~194^2~997 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cd81ae2f7b09c5cfac52f41efbe3c34857de1e1b;p=framework%2Fuifw%2Fecore.git better debug/error output for foreign fd issues. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@48370 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/ecore/ecore_main.c b/src/lib/ecore/ecore_main.c index 3eea6d7..86dda74 100644 --- a/src/lib/ecore/ecore_main.c +++ b/src/lib/ecore/ecore_main.c @@ -569,6 +569,7 @@ _ecore_main_fd_handlers_bads_rem(void) { Ecore_Fd_Handler *fdh; Eina_Inlist *l; + int found = 0; ERR("Removing bad fds"); for (l = EINA_INLIST_GET(fd_handlers); l; ) @@ -589,6 +590,7 @@ _ecore_main_fd_handlers_bads_rem(void) ERR("Fd function err returned 0, remove it"); fdh->delete_me = 1; fd_handlers_delete_me = 1; + found++; } fdh->references--; } @@ -597,10 +599,18 @@ _ecore_main_fd_handlers_bads_rem(void) ERR("Problematic fd found at %d! setting it for delete", fdh->fd); fdh->delete_me = 1; fd_handlers_delete_me = 1; + found++; } } } - + if (found == 0) + { +#ifdef HAVE_GLIB + ERR("No bad fd found. Maybe a foreign fd from glib?\n"); +#else + ERR("No bad fd found. EEEK!\n"); +#endif + } _ecore_main_fd_handlers_cleanup(); } #endif