summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2022-04-29 01:51:01 +0000
committerOri Bernstein <ori@eigenstate.org>2022-04-29 01:51:01 +0000
commita63472edf570d22cf5829b063de083a197e34c3a (patch)
tree1a7e18afdee2cd72428b109782fa383351aa3ab0
parenta271f62bf298b2ac236418dc581ec79c55a70816 (diff)
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.
-rw-r--r--sys/src/cmd/rc/io.c1
1 files changed, 0 insertions, 1 deletions
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();
}