pc: set exit status depending on errors
This commit is contained in:
parent
d0c6ade53d
commit
5016ac0c63
1 changed files with 2 additions and 0 deletions
|
@ -1065,4 +1065,6 @@ main(int argc, char **argv)
|
|||
if(in == nil) sysfatal("Bfdopen: %r");
|
||||
extern void yyparse(void);
|
||||
yyparse();
|
||||
extern int yynerrs;
|
||||
exits(yynerrs ? "error" : nil);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue