Hi all,
attached is a small bugfix for ecore. If the to-be-monitored path
doesn't exist, the poll monitor currently tries to remove an item from a
list which was never hooked up.
Joerg
$NetBSD$
--- src/lib/ecore_file/ecore_file_monitor_poll.c.orig 2010-08-14
16:48:51.000000000 +0000
+++ src/lib/ecore_file/ecore_file_monitor_poll.c
@@ -95,6 +95,8 @@ ecore_file_monitor_poll_add(const char *
em->data = data;
ECORE_FILE_MONITOR_POLL(em)->mtime = ecore_file_mod_time(em->path);
+ _monitors =
ECORE_FILE_MONITOR(eina_inlist_append(EINA_INLIST_GET(_monitors),
EINA_INLIST_GET(em)));
+
if (ecore_file_exists(em->path))
{
if (ecore_file_is_dir(em->path))
@@ -130,8 +132,6 @@ ecore_file_monitor_poll_add(const char *
return NULL;
}
- _monitors =
ECORE_FILE_MONITOR(eina_inlist_append(EINA_INLIST_GET(_monitors),
EINA_INLIST_GET(em)));
-
return em;
}
------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel