shithub: riscv

Download patch

ref: a63472edf570d22cf5829b063de083a197e34c3a
parent: a271f62bf298b2ac236418dc581ec79c55a70816
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
b90036a062ca330ac5.

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();
 		}