From f7f0a1c3241640bccb5a2e07241b69f2331cca87 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Sat, 23 Feb 2019 19:35:16 -0800 Subject: Check for any write errors --- main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.c b/main.c index a42d2c1..89e0b18 100644 --- a/main.c +++ b/main.c @@ -57,5 +57,8 @@ main(int argc, char *argv[]) emittentativedefns(); } + fflush(stdout); + if (ferror(stdout)) + fatal("write failed"); return 0; } -- cgit v1.2.3