tlibdraw: die if display does - plan9port - [fork] Plan 9 from user space
git clone git://src.adamsgaard.dk/plan9port
Log
Files
Refs
README
LICENSE
---
commit b65a69c1926434df597e2418c98e362a611463ea
parent e113e0a4bbc3024c43f008d17f618950b0ae20af
Author: Russ Cox 
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(-)
---
diff --git a/src/libdraw/drawclient.c b/src/libdraw/drawclient.c
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]);
diff --git a/src/libdraw/mouse.c b/src/libdraw/mouse.c
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);