Commit 3f4ca260 authored by Cedric BAIL's avatar Cedric BAIL

* eet: reduce likeliness of race condition by checking file size too.


SVN revision: 50382
parent 58dfd1c2
......@@ -405,3 +405,7 @@
(less overhead). On other OS, pthread is still used by default.
Pass --enable-win32-threads to activate thread support on
Windows.
2010-07-20 Cedric BAIL
* Improve file change detection in eet_open by checking size also.
......@@ -1447,7 +1447,8 @@ eet_open(const char *file, Eet_File_Mode mode)
}
/* We found one */
if (ef && (file_stat.st_mtime != ef->mtime))
if (ef &&
((file_stat.st_mtime != ef->mtime) || (file_stat.st_size != ef->data_size)))
{
ef->delete_me_now = 1;
ef->references++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment