[PATCH 3/6] Propagate errors out of io_stream::copy()

Corinna Vinschen corinna-cygwin@cygwin.com
Wed Apr 20 08:44:00 GMT 2011

On Apr  8 15:43, Jon TURNEY wrote:
> Despite the comment here, io_stream::read() is now implemented to provide the
> same behaviour as POSIX read(): If the stream is at EOF, 0 is returned. If an
> error occurred, -1 is returned.  So we can detect errors and propagate them to
> our caller.
> 2011-04-08  Jon TURNEY  <...>
> 	* io_stream.cc (copy): Propagate errors.



Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

More information about the Cygwin-apps mailing list