fix bug on raspberry pi crash/stuck when use cgminer