changeset 2383:9c7decce1d05

[xemacs-hg @ 2004-11-12 17:16:27 by james] Don't call the flusher if the writer returned an error.
author james
date Fri, 12 Nov 2004 17:16:30 +0000
parents ac4ffbd57062
children 7139b7bbcaec
files src/ChangeLog src/lstream.c
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Fri Nov 12 15:09:18 2004 +0000
+++ b/src/ChangeLog	Fri Nov 12 17:16:30 2004 +0000
@@ -1,3 +1,8 @@
+2004-11-12  Jerry James  <james@xemacs.org>
+
+	* lstream.c (Lstream_really_write): Don't call the flusher if the
+	writer returned an error.
+
 2004-11-11  Marcus Crestani  <crestani@informatik.uni-tuebingen.de>
 
 	* text.h:
--- a/src/lstream.c	Fri Nov 12 15:09:18 2004 +0000
+++ b/src/lstream.c	Fri Nov 12 17:16:30 2004 +0000
@@ -385,7 +385,7 @@
 	}
     }
 
-  if (lstr->imp->flusher)
+  if (!error_occurred && lstr->imp->flusher)
     error_occurred = (lstr->imp->flusher) (lstr) < 0;
 
   if (data == orig_data && error_occurred)