changeset 7347:34cc59e3da17 HEAD

If parent stream read() fails, update our stream_errno from the parent.
author Timo Sirainen <tss@iki.fi>
date Wed, 05 Mar 2008 02:03:10 +0200
parents 393abdd250bb
children 32d555a08443
files src/lib/istream-tee.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib/istream-tee.c	Wed Mar 05 01:48:22 2008 +0200
+++ b/src/lib/istream-tee.c	Wed Mar 05 02:03:10 2008 +0200
@@ -127,6 +127,7 @@
 				   wait for it */
 				return 0;
 			}
+			stream->istream.stream_errno = input->stream_errno;
 			stream->istream.eof = input->eof;
 			return ret;
 		}