libdraw: avoid printing error on closemouse()

This commit is contained in:
cinap_lenrek 2013-04-27 04:21:08 +02:00
parent a72a7c1cc2
commit 90036b9991

View file

@ -52,6 +52,8 @@ _ioproc(void *arg)
n = read(mc->mfd, buf, sizeof buf);
if(n != 1+4*12){
yield(); /* if error is due to exiting, we'll exit here */
if(mc->mfd < 0)
break;
fprint(2, "mouse: bad count %d not 49: %r\n", n);
if(n<0 || ++nerr>10)
threadexits("read error");