ref: 4a30e556f7b66bcd2e68ab04bd3c9c42e1e4dfac
parent: 75050a81cd37f5cdcc736c1176e98db355b19958
author: Ori Bernstein <ori@eigenstate.org>
date: Thu Apr 28 21:51:01 EDT 2022
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 0afdb5fa224e021170. It produces a lot of scary, noisy warnings, which are probably bogus.
--- a/sys/src/cmd/rc/io.c
+++ b/sys/src/cmd/rc/io.c
@@ -275,7 +275,6 @@
else{
n = f->bufp - f->buf;
if(n && Write(f->fd, f->buf, n) != n){
- Write(2, "Write error\n", 12);
if(ntrap)
dotrap();
}
--
⑨