mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-23 04:54:26 +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)
|
||||
{
|
||||
if ((bufLen) != write(fd, buf, bufLen)) {
|
||||
applog(LOG_ERR, "BFL: Error writing: %s", buf);
|
||||
if ((bufLen) != write(fd, buf, bufLen))
|
||||
return 0;
|
||||
} else
|
||||
else
|
||||
return bufLen;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user