diff options
author | Michael Forney <mforney@mforney.org> | 2019-02-23 19:35:16 -0800 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2019-02-23 19:35:16 -0800 |
commit | f7f0a1c3241640bccb5a2e07241b69f2331cca87 (patch) | |
tree | ad828774bb39122795504224c2867d2dcd892c13 | |
parent | d255fe4bb7af54cbfc0388c5d21ac0c2e2df0634 (diff) | |
download | cproc-f7f0a1c3241640bccb5a2e07241b69f2331cca87.tar.xz |
Check for any write errors
-rw-r--r-- | main.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -57,5 +57,8 @@ main(int argc, char *argv[]) emittentativedefns(); } + fflush(stdout); + if (ferror(stdout)) + fatal("write failed"); return 0; } |