aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/rc
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-08-11 16:44:18 +0000
committerrsc <devnull@localhost>2005-08-11 16:44:18 +0000
commit4ae2f414e20e32591f3b84c36fe721083fc0581e (patch)
treee07dc4dd014d273fb43a1fbd684f7d5fa4690a7b /src/cmd/rc
parent38897b2053f81eb7f46d936159c8f29ecb5c4e99 (diff)
downloadplan9port-4ae2f414e20e32591f3b84c36fe721083fc0581e.tar.gz
plan9port-4ae2f414e20e32591f3b84c36fe721083fc0581e.tar.bz2
plan9port-4ae2f414e20e32591f3b84c36fe721083fc0581e.zip
make sure errors cause non-zero exit status
Diffstat (limited to 'src/cmd/rc')
-rw-r--r--src/cmd/rc/exec.c2
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){