make sure errors cause non-zero exit status

This commit is contained in:
rsc 2005-08-11 16:44:18 +00:00
parent 38897b2053
commit 4ae2f414e2

View file

@ -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){