1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 17:17:31 +00:00

(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

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 );
}