return NULL;
}
- _ecore_main_fdh_poll_del(fd_handler);
fd_handler->delete_me = EINA_TRUE;
+ _ecore_main_fdh_poll_del(fd_handler);
fd_handlers_to_delete = eina_list_append(fd_handlers_to_delete, fd_handler);
if (fd_handler->prep_func && fd_handlers_with_prep)
fd_handlers_with_prep = eina_list_remove(fd_handlers_with_prep, fd_handler);
ERR("Fd function err returned 0, remove it");
if (!fdh->delete_me)
{
- _ecore_main_fdh_poll_del(fdh);
fdh->delete_me = EINA_TRUE;
+ _ecore_main_fdh_poll_del(fdh);
fd_handlers_to_delete = eina_list_append(fd_handlers_to_delete, fdh);
}
found++;
ERR("Problematic fd found at %d! setting it for delete", fdh->fd);
if (!fdh->delete_me)
{
- _ecore_main_fdh_poll_del(fdh);
fdh->delete_me = EINA_TRUE;
+ _ecore_main_fdh_poll_del(fdh);
fd_handlers_to_delete = eina_list_append(fd_handlers_to_delete, fdh);
}
{
if (!fdh->delete_me)
{
- _ecore_main_fdh_poll_del(fdh);
fdh->delete_me = EINA_TRUE;
+ _ecore_main_fdh_poll_del(fdh);
fd_handlers_to_delete = eina_list_append(fd_handlers_to_delete, fdh);
}
}
fdh = fd_handlers;
fd_handlers = (Ecore_Fd_Handler *)eina_inlist_remove(EINA_INLIST_GET(fd_handlers),
EINA_INLIST_GET(fdh));
+ fdh->delete_me = 1;
_ecore_main_fdh_poll_del(fdh);
ECORE_MAGIC_SET(fdh, ECORE_MAGIC_NONE);
ecore_fd_handler_mp_free(fdh);