diff options
author | Russ Cox <rsc@swtch.com> | 2008-06-30 19:44:15 -0400 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2008-06-30 19:44:15 -0400 |
commit | b65a69c1926434df597e2418c98e362a611463ea (patch) | |
tree | e7f6faadd8c19898e0878ecd38817cc5c3eef7e0 /src/libdraw | |
parent | e113e0a4bbc3024c43f008d17f618950b0ae20af (diff) | |
download | plan9port-b65a69c1926434df597e2418c98e362a611463ea.tar.gz plan9port-b65a69c1926434df597e2418c98e362a611463ea.tar.bz2 plan9port-b65a69c1926434df597e2418c98e362a611463ea.zip |
libdraw: die if display does
Diffstat (limited to 'src/libdraw')
-rw-r--r-- | src/libdraw/drawclient.c | 4 | ||||
-rw-r--r-- | src/libdraw/mouse.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/libdraw/drawclient.c b/src/libdraw/drawclient.c index 93c56235..5e9c950d 100644 --- a/src/libdraw/drawclient.c +++ b/src/libdraw/drawclient.c @@ -9,7 +9,7 @@ #include <drawfcall.h> #include <mux.h> -int chattydrawclient; +int chattydrawclient = 0; static int drawgettag(Mux *mux, void *vmsg); static void* drawrecv(Mux *mux); @@ -43,7 +43,7 @@ _displayconnect(Display *d) * Pass it along only so that the various * devdraws in psu -a can be distinguished. */ - execl("devdraw", "devdraw", argv0, nil); + execl("devdraw", argv0, argv0, nil); sysfatal("exec devdraw: %r"); } close(p[1]); diff --git a/src/libdraw/mouse.c b/src/libdraw/mouse.c index 5c6d0970..ad1a069b 100644 --- a/src/libdraw/mouse.c +++ b/src/libdraw/mouse.c @@ -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); |