mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-24 11:41:58 +00:00
make sure errors cause non-zero exit status
This commit is contained in:
parent
38897b2053
commit
4ae2f414e2
1 changed files with 2 additions and 0 deletions
|
@ -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){
|
||||
|
|
Loading…
Reference in a new issue