ref: e340e233a8213b4ef01a40d8dcd3bafe23aacc3e
parent: 7f8c46e27f55c89bef41f7e089d1f6f276c1696c
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Fri Oct 6 15:44:18 EDT 2023
devpipe: remove bogus "wstat on closed pipe" note This cannot happen ever. qsetlimit() will never raise an error and it would only go into the waserror() case when invalid argument checks fail.
--- a/sys/src/9/port/devpipe.c
+++ b/sys/src/9/port/devpipe.c
@@ -371,13 +371,6 @@
Dir d;
Pipe *p;
- if(waserror()){
- /* avoid notes when pipe is a mounted queue */
- if((c->flag & CMSG) == 0)
- postnote(up, 1, "sys: wstat on closed pipe", NUser);
- nexterror();
- }
-
n = convM2D(dp, n, &d, nil);
if(n == 0)
error(Eshortstat);
@@ -397,7 +390,6 @@
panic("pipewstat");
}
- poperror();
return n;
}
--
⑨