summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2018-06-26 16:38:20 -0400
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2018-06-28 18:08:45 +0200
commit4987fd4ab839a4d2acbcf63c056eade681aa92bd (patch)
treeb18f8e7200b53b289d7e21e5a2413371dc5ee7f3
parentb45561750039792a8d8c8def76f1bdc4812b962f (diff)
downloadefl-4987fd4ab839a4d2acbcf63c056eade681aa92bd.tar.gz
eio/fallback: always create timer hash on fallback init
this is a required call in order for the fallback system to work Differential Revision: https://phab.enlightenment.org/D6439
-rw-r--r--src/lib/eio/eio_monitor_poll.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/eio/eio_monitor_poll.c b/src/lib/eio/eio_monitor_poll.c
index be27eaaf75..ec0a2031d3 100644
--- a/src/lib/eio/eio_monitor_poll.c
+++ b/src/lib/eio/eio_monitor_poll.c
@@ -280,13 +280,10 @@ _eio_monitor_fallback_timer_cb(void *data)
&& !defined HAVE_NOTIFY_KEVENT
void eio_monitor_backend_init(void)
{
- timer_hash = eina_hash_pointer_new(NULL);
}
void eio_monitor_backend_shutdown(void)
{
- eina_hash_free(timer_hash);
- timer_hash = NULL;
}
void eio_monitor_backend_add(Eio_Monitor *monitor)
@@ -303,11 +300,14 @@ void eio_monitor_backend_del(Eio_Monitor *monitor)
void
eio_monitor_fallback_init(void)
{
+ timer_hash = eina_hash_pointer_new(NULL);
}
void
eio_monitor_fallback_shutdown(void)
{
+ eina_hash_free(timer_hash);
+ timer_hash = NULL;
}
void