diff options
author | rsc <devnull@localhost> | 2005-01-15 16:34:14 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-01-15 16:34:14 +0000 |
commit | 5ad21e86207dd42295733010dd448b51a614b611 (patch) | |
tree | 3255314aa8a80f54f111c1a74da7b65b3ccb41d4 /src/cmd/draw | |
parent | 1ba052428586419aeacac7dc413c294233e79327 (diff) | |
download | plan9port-5ad21e86207dd42295733010dd448b51a614b611.tar.gz plan9port-5ad21e86207dd42295733010dd448b51a614b611.tar.bz2 plan9port-5ad21e86207dd42295733010dd448b51a614b611.zip |
use threadexits instead of exits
Diffstat (limited to 'src/cmd/draw')
-rw-r--r-- | src/cmd/draw/tcolors.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/draw/tcolors.c b/src/cmd/draw/tcolors.c index 76875f88..8ce90023 100644 --- a/src/cmd/draw/tcolors.c +++ b/src/cmd/draw/tcolors.c @@ -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) @@ -173,7 +173,7 @@ mousethread(void *v) case 4: switch(menuhit(3, mousectl, &menu, nil)){ case 0: - exits(0); + threadexitsall(0); } } } @@ -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; |