ecore: fix detection of complete file write in ecore_file inotify.

Patch by Guillaume Friloux <uillaume.friloux@asp64.com>.


SVN revision: 57450
This commit is contained in:
Cedric BAIL 2011-03-01 09:57:13 +00:00
parent 40edc9ccb1
commit fd6268a991
3 changed files with 8 additions and 2 deletions

View File

@ -76,3 +76,8 @@
2011-03-01 Raoul Hecky
* Add ecore_con_url_ssl_verify_peer_set API.
2011-03-01 Guillaume Friloux
* Fix detection of complete file write in ecore_file inotify.

View File

@ -73,7 +73,8 @@ typedef enum _Ecore_File_Event
ECORE_FILE_EVENT_DELETED_FILE, /**< Deleted file event. */
ECORE_FILE_EVENT_DELETED_DIRECTORY, /**< Deleted directory event. */
ECORE_FILE_EVENT_DELETED_SELF, /**< Deleted monitored directory event. */
ECORE_FILE_EVENT_MODIFIED /**< Modified file or directory event. */
ECORE_FILE_EVENT_MODIFIED, /**< Modified file or directory event. */
ECORE_FILE_EVENT_CLOSED /**< Closed file event */
} Ecore_File_Event;
/**

View File

@ -218,7 +218,7 @@ _ecore_file_monitor_inotify_events(Ecore_File_Monitor *em, char *file, int mask)
if (mask & IN_CLOSE_WRITE)
{
if (!isdir)
em->func(em->data, em, ECORE_FILE_EVENT_MODIFIED, buf);
em->func(em->data, em, ECORE_FILE_EVENT_CLOSED, buf);
}
if (mask & IN_MODIFY)
{