forked from enlightenment/efl
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:
parent
40edc9ccb1
commit
fd6268a991
|
@ -76,3 +76,8 @@
|
||||||
2011-03-01 Raoul Hecky
|
2011-03-01 Raoul Hecky
|
||||||
|
|
||||||
* Add ecore_con_url_ssl_verify_peer_set API.
|
* Add ecore_con_url_ssl_verify_peer_set API.
|
||||||
|
|
||||||
|
2011-03-01 Guillaume Friloux
|
||||||
|
|
||||||
|
* Fix detection of complete file write in ecore_file inotify.
|
||||||
|
|
||||||
|
|
|
@ -73,7 +73,8 @@ typedef enum _Ecore_File_Event
|
||||||
ECORE_FILE_EVENT_DELETED_FILE, /**< Deleted file event. */
|
ECORE_FILE_EVENT_DELETED_FILE, /**< Deleted file event. */
|
||||||
ECORE_FILE_EVENT_DELETED_DIRECTORY, /**< Deleted directory event. */
|
ECORE_FILE_EVENT_DELETED_DIRECTORY, /**< Deleted directory event. */
|
||||||
ECORE_FILE_EVENT_DELETED_SELF, /**< Deleted monitored 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;
|
} Ecore_File_Event;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -218,7 +218,7 @@ _ecore_file_monitor_inotify_events(Ecore_File_Monitor *em, char *file, int mask)
|
||||||
if (mask & IN_CLOSE_WRITE)
|
if (mask & IN_CLOSE_WRITE)
|
||||||
{
|
{
|
||||||
if (!isdir)
|
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)
|
if (mask & IN_MODIFY)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue