From 9773f55318866e98b549793f7c202ed118110f29 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Fri, 31 Dec 2021 16:05:28 +0000 Subject: [PATCH] rc: add err != nil check for early exit --- sys/src/cmd/rc/plan9.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/src/cmd/rc/plan9.c b/sys/src/cmd/rc/plan9.c index 555417054..215ac318a 100644 --- a/sys/src/cmd/rc/plan9.c +++ b/sys/src/cmd/rc/plan9.c @@ -249,7 +249,8 @@ Updenv(void) addenv(v); if(runq) updenvlocal(runq->local); - flushio(err); + if(err) + flushio(err); } void