ecore: Make sure signals break from the main loop

SVN revision: 61111
This commit is contained in:
Mike McCormack 2011-07-07 11:37:02 +00:00
parent 3c2f6cfbc9
commit 39c049c8d1
1 changed files with 4 additions and 0 deletions

View File

@ -600,6 +600,10 @@ _ecore_main_gsource_check(GSource *source __UNUSED__)
ecore_fds_ready = (_ecore_main_fdh_glib_mark_active() > 0);
_ecore_main_fd_handlers_cleanup();
/* ^C perhaps? */
if (!ret && _ecore_signal_count_get() > 0)
ret = TRUE;
/* check timers after updating loop time */
_ecore_time_loop_time = ecore_time_get();
if (!ret && _ecore_timers_exists())