improved error handling: C_busy now returns 0 if C_failed is called

This commit is contained in:
ceriel 1989-10-25 11:36:51 +00:00
parent e4309374be
commit 4360ab1cee

View file

@ -71,6 +71,7 @@ C_flush() {
}
#endif
if (C_opp != obuf && sys_write(C_ofp, obuf, C_opp - obuf) == 0) {
C_ofp = 0;
C_failed();
}
C_opp = obuf;