1
0
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:
Con Kolivas 2012-07-03 10:59:37 +10:00
parent 978ec0d805
commit 0f405c7c18

View File

@ -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;
}