ecore: resolve the possible use of invalid handle.

Signed-Off-By: JongMin Lee<jm105.lee@samsung.com>
This commit is contained in:
Hermet Park 2018-04-05 15:15:34 +09:00
parent 820aca03ea
commit ec7bcc79e7
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ _timer_tick_core(void *data EINA_UNUSED, Ecore_Thread *thread)
timerfd = timerfd_create(CLOCK_MONOTONIC, 0);
if (timerfd >= 0) eina_file_close_on_exec(timerfd, EINA_TRUE);
}
if (timerfd < 0)
if ((timerfd < 0) && (pollfd >= 0))
{
close(pollfd);
pollfd = -1;