libdraw: die if display does

This commit is contained in:
Russ Cox 2008-06-30 19:44:15 -04:00
parent e113e0a4bb
commit b65a69c192
2 changed files with 3 additions and 3 deletions

View file

@ -53,7 +53,7 @@ _ioproc(void *arg)
resized = 0;
for(;;){
if(_displayrdmouse(mc->display, &m, &resized) < 0)
threadexits("read error");
threadexitsall("mouse read error");
if(resized)
send(mc->resizec, &one);
send(mc->c, &m);