diff options
author | rsc <devnull@localhost> | 2005-01-17 21:29:00 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-01-17 21:29:00 +0000 |
commit | 38c10d1abcab399ce3735ccf54672a5b6787165e (patch) | |
tree | 9a9a70c593a42f68837a5a02461e9d3ce31433bf /src/cmd/9p.c | |
parent | e33c70bc72fa4af9d2261ed6d864bd13b8af9be5 (diff) | |
download | plan9port-38c10d1abcab399ce3735ccf54672a5b6787165e.tar.gz plan9port-38c10d1abcab399ce3735ccf54672a5b6787165e.tar.bz2 plan9port-38c10d1abcab399ce3735ccf54672a5b6787165e.zip |
do not call exits in threaded programs
Diffstat (limited to 'src/cmd/9p.c')
-rw-r--r-- | src/cmd/9p.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/cmd/9p.c b/src/cmd/9p.c index 0f0a1a66..cc4336b3 100644 --- a/src/cmd/9p.c +++ b/src/cmd/9p.c @@ -19,7 +19,7 @@ usage(void) fprint(2, " stat name\n"); // fprint(2, " ls name\n"); fprint(2, "without -a, name elem/path means /path on server unix!$ns/elem\n"); - exits("usage"); + threadexitsall("usage"); } void xread(int, char**); @@ -142,7 +142,7 @@ xread(int argc, char **argv) write(1, buf, n); if(n < 0) sysfatal("read error: %r"); - exits(0); + threadexitsall(0); } void @@ -165,7 +165,7 @@ xreadfd(int argc, char **argv) write(1, buf, n); if(n < 0) sysfatal("read error: %r"); - exits(0); + threadexitsall(0); } void @@ -196,7 +196,7 @@ xwrite(int argc, char **argv) } if(n < 0) sysfatal("read error: %r"); - exits(0); + threadexitsall(0); } void @@ -220,7 +220,7 @@ xwritefd(int argc, char **argv) sysfatal("write error: %r"); if(n < 0) sysfatal("read error: %r"); - exits(0); + threadexitsall(0); } void @@ -245,5 +245,5 @@ xstat(int argc, char **argv) fmtinstall('D', dirfmt); fmtinstall('M', dirmodefmt); print("%D\n", d); - exits(0); + threadexitsall(0); } |