ref: ec569dd197fa471b874b13d02c3fcc7ff86bc53f
parent: be9705f4f09c4f03f0c3eca317d9223c6086d7c9
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Jun 8 14:27:39 EDT 2014
iostats: dont sysfatal on 9p read error due to program termination the note mechanism is racy and can lead to the fs terminating iostats because it gets "i/o on hugup channel" (namespace closed).
--- a/sys/src/cmd/iostats/iostats.c
+++ b/sys/src/cmd/iostats/iostats.c
@@ -166,10 +166,8 @@
while((n = read9pmsg(p[1], r->buf, sizeof(r->buf))) == 0 && !done)
;
- if(done)
+ if(done || n < 0)
break;
- if(n < 0)
- fatal("read server");if(convM2S(r->buf, n, &r->work) == 0)
fatal("format error");--
⑨