From f0264abf2684f96c011ad56b292378a67074c148 Mon Sep 17 00:00:00 2001 From: rsc Date: Thu, 20 Jan 2005 22:59:50 +0000 Subject: ignore host read eof while exiting --- src/cmd/samterm/mesg.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/cmd/samterm/mesg.c') diff --git a/src/cmd/samterm/mesg.c b/src/cmd/samterm/mesg.c index c7371812..09b492a6 100644 --- a/src/cmd/samterm/mesg.c +++ b/src/cmd/samterm/mesg.c @@ -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; -- cgit v1.2.3