| Date: Mon, 30 Jun 2008 19:44:15 -0400
libdraw: die if display does
Diffstat:
M src/libdraw/drawclient.c | 4 ++--
M src/libdraw/mouse.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
--- |
| t@@ -9,7 +9,7 @@
#include
#include
-int chattydrawclient;
+int chattydrawclient = 0;
static int drawgettag(Mux *mux, void *vmsg);
static void* drawrecv(Mux *mux);
t@@ -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]); |
| t@@ -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); |