mirror of
https://github.com/xmrig/xmrig.git
synced 2024-11-18 18:11:05 +00:00
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:
commit
8ab9f0f860
1 changed files with 1 additions and 1 deletions
|
@ -93,5 +93,5 @@ void FileLog::write(char *data, size_t size)
|
||||||
uv_fs_t *req = new uv_fs_t;
|
uv_fs_t *req = new uv_fs_t;
|
||||||
req->data = buf.base;
|
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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue