(trunk libT) add an fsync() before closing files

This commit is contained in:
Charles Kerr 2010-03-07 06:14:04 +00:00
parent f7cf4b7190
commit c55788acac
1 changed files with 1 additions and 0 deletions

View File

@ -323,6 +323,7 @@ tr_close_file( int fd )
posix_fadvise( fd, 0, 0, POSIX_FADV_DONTNEED );
errno = err;
#endif
fsync( fd );
close( fd );
}