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

@ -9,7 +9,7 @@
#include <drawfcall.h> #include <drawfcall.h>
#include <mux.h> #include <mux.h>
int chattydrawclient; int chattydrawclient = 0;
static int drawgettag(Mux *mux, void *vmsg); static int drawgettag(Mux *mux, void *vmsg);
static void* drawrecv(Mux *mux); static void* drawrecv(Mux *mux);
@ -43,7 +43,7 @@ _displayconnect(Display *d)
* Pass it along only so that the various * Pass it along only so that the various
* devdraws in psu -a can be distinguished. * devdraws in psu -a can be distinguished.
*/ */
execl("devdraw", "devdraw", argv0, nil); execl("devdraw", argv0, argv0, nil);
sysfatal("exec devdraw: %r"); sysfatal("exec devdraw: %r");
} }
close(p[1]); close(p[1]);

View file

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