ecore: Fix clean shutdown
authorJean-Philippe Andre <jp.andre@samsung.com>
Fri, 15 Dec 2017 08:42:08 +0000 (17:42 +0900)
committerWonki Kim <wonki_.kim@samsung.com>
Wed, 10 Jan 2018 11:08:13 +0000 (20:08 +0900)
commit9d070435a0ea5ba0f0a9f17b51945959732b79cb
tree9173af8a53cd4e8b213c09a7ac2df117fdd63a7a
parent381c3a211582bf2a5e85711e6b4c9eda2917e33e
ecore: Fix clean shutdown

There is no good reason to not shutdown a library properly. The loop
object can easily be deleted safely, if it is properly initialized. The
del event happens before destruction so it is too early to set the
singleton variable to NULL. Do that as late as possible and all calls to
efl_loop_main_get() will work as expected.

The issue with fd's was simply that they were not initialized to -1
(timer_fd), as some #ifdef statements have disappeared.
src/lib/ecore/ecore_main.c
src/lib/ecore/efl_loop.c