summaryrefslogtreecommitdiff
path: root/src/lib/eio/eio_monitor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/eio/eio_monitor.c')
-rw-r--r--src/lib/eio/eio_monitor.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/eio/eio_monitor.c b/src/lib/eio/eio_monitor.c
index 84262bb329..bc1ed07db0 100644
--- a/src/lib/eio/eio_monitor.c
+++ b/src/lib/eio/eio_monitor.c
@@ -371,7 +371,14 @@ eio_monitor_stringshared_add(const char *path)
371 371
372 EINA_REFCOUNT_INIT(monitor); 372 EINA_REFCOUNT_INIT(monitor);
373 373
374 if (getenv("EIO_MONITOR_POLL")) 374 static signed char monpoll = -1;
375
376 if (monpoll == -1)
377 {
378 if (getenv("EIO_MONITOR_POLL")) monpoll = 1;
379 else monpoll = 0;
380 }
381 if (monpoll)
375 eio_monitor_fallback_add(monitor); 382 eio_monitor_fallback_add(monitor);
376 else 383 else
377 eio_monitor_backend_add(monitor); 384 eio_monitor_backend_add(monitor);