Browse Source

Remove applog call from bfwrite to prevent grabbing nested mutexes.

nfactor-troky
Con Kolivas 13 years ago
parent
commit
0f405c7c18
  1. 5
      driver-bitforce.c

5
driver-bitforce.c

@ -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…
Cancel
Save