From a63472edf570d22cf5829b063de083a197e34c3a Mon Sep 17 00:00:00 2001 From: Ori Bernstein Date: Fri, 29 Apr 2022 01:51:01 +0000 Subject: [PATCH] rc: squelch 'Write error' warning When writing to a large variable in /env, we spam 'Write error', in spite of the env var working. This is new behavior, as of commit b90036a062ca330ac5. It produces a lot of scary, noisy warnings, which are probably bogus. --- sys/src/cmd/rc/io.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sys/src/cmd/rc/io.c b/sys/src/cmd/rc/io.c index 7c1a27ea1..ee16f8884 100644 --- a/sys/src/cmd/rc/io.c +++ b/sys/src/cmd/rc/io.c @@ -275,7 +275,6 @@ flushio(io *f) else{ n = f->bufp - f->buf; if(n && Write(f->fd, f->buf, n) != n){ - Write(2, "Write error\n", 12); if(ntrap) dotrap(); }