path: root/src/lib/eio/eio_model_private.h
diff options
authorDerek Foreman <>2018-07-10 09:43:55 -0400
committerMike Blumenkrantz <>2018-07-10 09:43:55 -0400
commit35210b553dce1f2fda7090025318e34919c47712 (patch)
tree67d0576ef72693894c13f407c659b364360c8d53 /src/lib/eio/eio_model_private.h
parentb27ecc58ddd05465b441682e2a20fd06f66a6c48 (diff)
eio_model: Fix deleting files that don't have assigned types yet
Summary: Trying to delete a file from a creation notification callback can fail. Sometimes the eio model test would sit forever in select() waiting for events that will never occur because of this. This happens since d84a268a71b09d585f1672b44ade698d7babe28d broke deleting of files that haven't yet been assigned a type. Before this commit a delete_me flag would be set before attempting to build a stat buf asynchronously, and then on completion the file would be deleted. I think this was changed because that could potentially race with other async calls and delete the file sooner than expected. So instead of reverting I've made a special delete path that shouldn't race with non-delete paths. Reviewers: devilhorns, zmike Reviewed By: zmike Subscribers: cedric, #committers, zmike Tags: #efl Differential Revision:
Diffstat (limited to 'src/lib/eio/eio_model_private.h')
1 files changed, 0 insertions, 1 deletions
diff --git a/src/lib/eio/eio_model_private.h b/src/lib/eio/eio_model_private.h
index c0ac50a..bf1344a 100644
--- a/src/lib/eio/eio_model_private.h
+++ b/src/lib/eio/eio_model_private.h
@@ -68,7 +68,6 @@ struct _Eio_Model_Data
68 Eina_Error error; 68 Eina_Error error;
69 69
70 Eina_Bool listed : 1; 70 Eina_Bool listed : 1;
71 Eina_Bool delete_me : 1;
72}; 71};
73 72
74#endif 73#endif