]> xenbits.xensource.com Git - libvirt.git/commit
fdstream: Report error from the I/O thread
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 29 May 2017 14:29:36 +0000 (16:29 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 11 Jul 2017 06:41:01 +0000 (08:41 +0200)
commit0fe4aa149f35fcca9d4029d5be8a0f3967d46fd5
treed2f270f185570c4755905df3b4cdeb56d94b6e95
parent3a2ca2fbe4f9d6a593a8ccb2b77b0e18571e8cb0
fdstream: Report error from the I/O thread

Problem with our error reporting is that the error object is a
thread local variable. That means if there's an error reported
within the I/O thread it gets logged and everything, but later
when the event loop aborts the stream it doesn't see the original
error. So we are left with some generic error. We can do better
if we copy the error message between the threads.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
daemon/stream.c
src/util/virfdstream.c