mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-02 10:04:33 +00:00
Remove applog call from bfwrite to prevent grabbing nested mutexes.
This commit is contained in:
parent
978ec0d805
commit
0f405c7c18
@ -41,10 +41,9 @@ static void BFgets(char *buf, size_t bufLen, int fd)
|
|||||||
|
|
||||||
static ssize_t BFwrite(int fd, const void *buf, ssize_t bufLen)
|
static ssize_t BFwrite(int fd, const void *buf, ssize_t bufLen)
|
||||||
{
|
{
|
||||||
if ((bufLen) != write(fd, buf, bufLen)) {
|
if ((bufLen) != write(fd, buf, bufLen))
|
||||||
applog(LOG_ERR, "BFL: Error writing: %s", buf);
|
|
||||||
return 0;
|
return 0;
|
||||||
} else
|
else
|
||||||
return bufLen;
|
return bufLen;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user