ignore host read eof while exiting
This commit is contained in:
parent
303cb7c6db
commit
f0264abf26
3 changed files with 9 additions and 0 deletions
|
|
@ -17,6 +17,7 @@ uchar outdata[DATASIZE];
|
|||
short outcount;
|
||||
int hversion;
|
||||
int hostfd[2];
|
||||
int exiting;
|
||||
|
||||
void inmesg(Hmesg, int);
|
||||
int inshort(int);
|
||||
|
|
@ -29,6 +30,7 @@ void hplumb(int);
|
|||
void clrlock(void);
|
||||
int snarfswap(char*, int, char**);
|
||||
|
||||
|
||||
void
|
||||
rcv(void)
|
||||
{
|
||||
|
|
@ -298,6 +300,7 @@ inmesg(Hmesg type, int count)
|
|||
break;
|
||||
|
||||
case Hexit:
|
||||
exiting = 1;
|
||||
outT0(Texit);
|
||||
threadexitsall(nil);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue