shithub: riscv

Download patch

ref: 969116f1277b9a5b96facc7f934ae2119858705a
parent: a4fa14a9d8f604d3e1eb409091b4f0d879f9cf97
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Apr 16 11:35:50 EDT 2023

aux/listen: log the real error when announce() fails

--- a/sys/src/cmd/aux/listen.c
+++ b/sys/src/cmd/aux/listen.c
@@ -216,7 +216,7 @@
 				for(;;){
 					ctl = announce(ds, dir);
 					if(ctl < 0) {
-						errstr(err, sizeof err);
+						rerrstr(err, sizeof err);
 						if (!whined)
 							syslog(1, listenlog,
 							   "giving up on %s: %r",