Merge pull request #629 from rivoreo/upstream-fix-log-file

#629 Fix FileLog (--log-file) fails on non-seekable files
This commit is contained in:
xmrig 2018-05-17 11:52:43 +07:00 committed by GitHub
commit 8ab9f0f860
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -93,5 +93,5 @@ void FileLog::write(char *data, size_t size)
uv_fs_t *req = new uv_fs_t;
req->data = buf.base;
uv_fs_write(uv_default_loop(), req, m_file, &buf, 1, 0, FileLog::onWrite);
uv_fs_write(uv_default_loop(), req, m_file, &buf, 1, -1, FileLog::onWrite);
}