shithub: riscv

Download patch

ref: 9773f55318866e98b549793f7c202ed118110f29
parent: 44a5f4d2eff13fd08a56da842b11e0dd85462055
author: cinap_lenrek <[email protected]>
date: Fri Dec 31 11:05:28 EST 2021

rc: add err != nil check for early exit

--- a/sys/src/cmd/rc/plan9.c
+++ b/sys/src/cmd/rc/plan9.c
@@ -249,7 +249,8 @@
 			addenv(v);
 	if(runq)
 		updenvlocal(runq->local);
-	flushio(err);
+	if(err)
+		flushio(err);
 }
 
 void