diff options
author | rsc <devnull@localhost> | 2005-01-04 22:16:38 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-01-04 22:16:38 +0000 |
commit | 28aaab76cffd50db867f8aec2c35e4244ea196f5 (patch) | |
tree | 6edd1163ee577f2dfb98bb33c63d487a529c4257 /src/cmd/draw | |
parent | 8cc98332adbb236ee12a3e2e706e61566ece3885 (diff) | |
download | plan9port-28aaab76cffd50db867f8aec2c35e4244ea196f5.tar.gz plan9port-28aaab76cffd50db867f8aec2c35e4244ea196f5.tar.bz2 plan9port-28aaab76cffd50db867f8aec2c35e4244ea196f5.zip |
exit correctly.
Diffstat (limited to 'src/cmd/draw')
-rw-r--r-- | src/cmd/draw/stats.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/draw/stats.c b/src/cmd/draw/stats.c index 87326cda..457aea4b 100644 --- a/src/cmd/draw/stats.c +++ b/src/cmd/draw/stats.c @@ -131,7 +131,7 @@ killall(char *s) for(i=0; i<nmach; i++) if(mach[i].pid) postnote(PNPROC, mach[i].pid, "kill"); - exits(s); + threadexitsall(s); } void* @@ -333,7 +333,7 @@ void usage(void) { fprint(2, "usage: stats [-O] [-S scale] [-LY] [-W winsize] [-%s] [machine...]\n", argchars); - exits("usage"); + threadexitsall("usage"); } void @@ -681,7 +681,7 @@ threadmain(int argc, char *argv[]) mysysname = sysname(); if(mysysname == nil){ fprint(2, "stats: can't find sysname: %r\n"); - exits("sysname"); + threadexitsall("sysname"); } nargs = 0; |