pc: set exit status depending on errors

This commit is contained in:
Sigrid 2020-12-15 14:37:36 +01:00
parent d0c6ade53d
commit 5016ac0c63

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