Displaying 2 results from an estimated 2 matches for "vir_stream_event_".
2013 Sep 19
2
Re: Trouble using virStream with callbacks
On Thu, Sep 19, 2013 at 12:59:33PM -0400, Jonathan Lebon wrote:
> > poll() will be listening for i/o on the libvirt socket as well as
> > stdin, so it'll see incoming I/O from the guest.
>
> That's strange, that's not what I'm seeing when running it step-by-step. I see
> poll() hanging regardless of guest events. There are indeed two fds in the
> array
2013 Sep 19
0
Re: Trouble using virStream with callbacks
...uld let you identify whether the flaw is in your host
> code, or the guest side.
Thanks for the pointer. Doing a few trivial changes to virsh-console does
show that it works correctly and pointed out multiple errors in the
original code (not least of which using VIR_EVENT_* constants instead of
VIR_STREAM_EVENT_*).
I have one more question, are there any risks associated with abandoning
threads and just doing the virEventRunDefaultImpl() in a loop after setting
up all the callbacks? I'm trying to keep this as simple as possible.
Cheers,
Jonathan