improved error handling: C_busy now returns 0 if C_failed is called
authorceriel <none@none>
Wed, 25 Oct 1989 11:36:51 +0000 (11:36 +0000)
committerceriel <none@none>
Wed, 25 Oct 1989 11:36:51 +0000 (11:36 +0000)
modules/src/em_code/em.c

index f5f2442..d5db2de 100644 (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;