tuse threadexits instead of exits - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 5ad21e86207dd42295733010dd448b51a614b611
 (DIR) parent 1ba052428586419aeacac7dc413c294233e79327
 (HTM) Author: rsc <devnull@localhost>
       Date:   Sat, 15 Jan 2005 16:34:14 +0000
       
       use threadexits instead of exits
       
       Diffstat:
         M src/cmd/draw/tcolors.c              |       6 +++---
       
       1 file changed, 3 insertions(+), 3 deletions(-)
       ---
 (DIR) diff --git a/src/cmd/draw/tcolors.c b/src/cmd/draw/tcolors.c
       t@@ -65,7 +65,7 @@ threadmain(int argc, char *argv[])
                if(argc){
                Usage:
                        fprint(2, "Usage: %s [-rx]\n", argv0);
       -                exits("usage");
       +                threadexitsall("usage");
                }
        
                if(initdraw(0, nil, "colors") < 0)
       t@@ -173,7 +173,7 @@ mousethread(void *v)
                        case 4:
                                switch(menuhit(3, mousectl, &menu, nil)){
                                case 0:
       -                                exits(0);
       +                                threadexitsall(0);
                                }
                        }
                }
       t@@ -187,7 +187,7 @@ eresized(int new)
        
                if(new && getwindow(display, Refnone) < 0){
                        fprint(2, "colors: can't reattach to window: %r\n");
       -                exits("resized");
       +                threadexitsall("resized");
                }
                if(screen->depth > 8){
                        n = 256;