do not call exits in threaded programs
This commit is contained in:
parent
e33c70bc72
commit
38c10d1abc
8 changed files with 25 additions and 17 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue