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

2011-04-20 Thread Corinna Vinschen
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.

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

2011-04-08 Thread Jon TURNEY
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