changeset 22:cef2dc916269

honor mode.do_output
author David A. Holland
date Mon, 20 Dec 2010 04:17:32 -0500
parents e3fab8f1b52c
children fb83c2df2268
files output.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/output.c	Mon Dec 20 04:15:02 2010 -0500
+++ b/output.c	Mon Dec 20 04:17:32 2010 -0500
@@ -29,6 +29,10 @@
 	ssize_t result;
 	static unsigned write_errors = 0;
 
+	if (!mode.do_output) {
+		return;
+	}
+
 	if (outputfd < 0) {
 		output_open();
 	}