diff options
-rw-r--r-- | src/cmd/rc/exec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd/rc/exec.c b/src/cmd/rc/exec.c index e1791542..72e57845 100644 --- a/src/cmd/rc/exec.c +++ b/src/cmd/rc/exec.c @@ -786,6 +786,7 @@ void Xerror(char *s) else pfmt(err, "rc (%s): %s: %r\n", argv0, s); flush(err); + setstatus("error"); while(!runq->iflag) Xreturn(); } void Xerror1(char *s) @@ -795,6 +796,7 @@ void Xerror1(char *s) else pfmt(err, "rc (%s): %s\n", argv0, s); flush(err); + setstatus("error"); while(!runq->iflag) Xreturn(); } void Xbackq(void){ |