ckolivas/cgminer — pull request #162 by luke-jr (2012-04-06 14:38:32+00:00)
Title: Workaround Icarus UART failures by reopening the tty every scanhash

ngzhang says the USB-UART chip isn't stable on some computers, and I'm experiencing some weirdness myself.
This workaround seems to fix it (tested for over 48 hours, whereas failure is usually in well under 5 hours).