aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/9term
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/9term')
-rw-r--r--src/cmd/9term/9term.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/9term/9term.c b/src/cmd/9term/9term.c
index 257b87ba..31c9f289 100644
--- a/src/cmd/9term/9term.c
+++ b/src/cmd/9term/9term.c
@@ -1064,7 +1064,7 @@ consread(void)
*/
s = setecho(sfd, 0);
if(write(rcfd, buf, n) < 0)
- exits(0);
+ threadexitsall(0);
if(s)
setecho(sfd, s);
}