summaryrefslogtreecommitdiff
path: root/src/lib/eio
diff options
context:
space:
mode:
authorCedric Bail <cedric@osg.samsung.com>2016-07-15 17:03:53 -0700
committerCedric Bail <cedric@osg.samsung.com>2016-07-15 17:07:49 -0700
commitadff89dfc0fc486c42382941328ec315e4aa4ff1 (patch)
tree61c02f3a207652844f1dfbc1fd67b91feb6d1694 /src/lib/eio
parente93d6f90db2b4b2bf281e9eb810aaa2338ba2737 (diff)
eio: make it possible to force fallback monitor for testing purpose.
Diffstat (limited to 'src/lib/eio')
-rw-r--r--src/lib/eio/eio_monitor.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/eio/eio_monitor.c b/src/lib/eio/eio_monitor.c
index 9bbc96e497..d30dfd28a4 100644
--- a/src/lib/eio/eio_monitor.c
+++ b/src/lib/eio/eio_monitor.c
@@ -369,8 +369,11 @@ eio_monitor_stringshared_add(const char *path)
369 369
370 EINA_REFCOUNT_INIT(monitor); 370 EINA_REFCOUNT_INIT(monitor);
371 371
372 eio_monitor_backend_add(monitor); 372 if (getenv("EIO_MONITOR_POLL"))
373 373 eio_monitor_fallback_add(monitor);
374 else
375 eio_monitor_backend_add(monitor);
376
374 eina_hash_direct_add(_eio_monitors, path, monitor); 377 eina_hash_direct_add(_eio_monitors, path, monitor);
375 INF("New monitor on '%s'.", path); 378 INF("New monitor on '%s'.", path);
376 379