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:
parent
f7cf4b7190
commit
c55788acac
1 changed files with 1 additions and 0 deletions
|
@ -323,6 +323,7 @@ tr_close_file( int fd )
|
|||
posix_fadvise( fd, 0, 0, POSIX_FADV_DONTNEED );
|
||||
errno = err;
|
||||
#endif
|
||||
fsync( fd );
|
||||
close( fd );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue