pc: set exit status depending on errors

front
Sigrid 2020-12-15 14:37:36 +01:00
parent d0c6ade53d
commit 5016ac0c63
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}