ignore host read eof while exiting
This commit is contained in:
parent
303cb7c6db
commit
f0264abf26
3 changed files with 9 additions and 0 deletions
|
|
@ -279,6 +279,11 @@ hostproc(void *arg)
|
|||
n = read(hostfd[0], hostbuf[i].data, sizeof hostbuf[i].data);
|
||||
if(0) fprint(2, "hostproc %d\n", n);
|
||||
if(n <= 0){
|
||||
if(n == 0){
|
||||
if(exiting)
|
||||
threadexits(nil);
|
||||
werrstr("unexpected eof");
|
||||
}
|
||||
fprint(2, "samterm: host read error: %r\n");
|
||||
threadexitsall("host");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue