diff --git a/libtransmission/file-posix.cc b/libtransmission/file-posix.cc index 3dbdc677c..88b2d153c 100644 --- a/libtransmission/file-posix.cc +++ b/libtransmission/file-posix.cc @@ -781,7 +781,7 @@ bool tr_sys_file_flush(tr_sys_file_t handle, tr_error** error) { TR_ASSERT(handle != TR_BAD_SYS_FILE); - bool const ret = fsync(handle) != -1; + bool const ret = (isatty(handle) ? true : (fsync(handle) != -1)); if (!ret) {