Re: [libvirt] [PATCH 1/2] virfdstream: Check for thread error more frequently

2017-05-31 Thread Martin Kletzander
On Tue, May 30, 2017 at 12:44:22PM +0200, Michal Privoznik wrote: When the I/O thread quits (e.g. due to an I/O error, lseek() error, whatever), any subsequent virFDStream API should return error too. Moreover, when invoking stream event callback, we must set the VIR_STREAM_EVENT_ERROR flag so th

[libvirt] [PATCH 1/2] virfdstream: Check for thread error more frequently

2017-05-30 Thread Michal Privoznik
When the I/O thread quits (e.g. due to an I/O error, lseek() error, whatever), any subsequent virFDStream API should return error too. Moreover, when invoking stream event callback, we must set the VIR_STREAM_EVENT_ERROR flag so that the callback knows something bad happened. Signed-off-by: Michal