From: ceriel Date: Wed, 25 Oct 1989 11:36:51 +0000 (+0000) Subject: improved error handling: C_busy now returns 0 if C_failed is called X-Git-Tag: release-5-5~2157 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=4360ab1cee2892ed7547d6bbb3afa7851d837c4c;p=ack.git improved error handling: C_busy now returns 0 if C_failed is called --- diff --git a/modules/src/em_code/em.c b/modules/src/em_code/em.c index f5f24421a..d5db2de4c 100644 --- a/modules/src/em_code/em.c +++ b/modules/src/em_code/em.c @@ -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;