Re: [PATCH 1/6] Don't hang if something goes wrong reading from a tar archive

2011-04-20 Thread Corinna Vinschen
On Apr 8 15:43, Jon TURNEY wrote: Returning EIO (a small positive integer) as the result of archive_tar_file::read() on an error isn't a good idea, it's indistinguishable from successfully reading a small number of bytes. This causes io_stream::copy() to spin forever if it's reading

[PATCH 1/6] Don't hang if something goes wrong reading from a tar archive

2011-04-08 Thread Jon TURNEY
Returning EIO (a small positive integer) as the result of archive_tar_file::read() on an error isn't a good idea, it's indistinguishable from successfully reading a small number of bytes. This causes io_stream::copy() to spin forever if it's reading from an archive stream which terminates