do not call exits in threaded programs

This commit is contained in:
rsc 2005-01-17 21:29:00 +00:00
parent e33c70bc72
commit 38c10d1abc
8 changed files with 25 additions and 17 deletions

View file

@ -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);
}