On Mar 14, 2014, at 9:32 AM, Daniel P. Berrange <berrange@xxxxxxxxxx> wrote:
Yes, I’ve used this file as a reference and implemented a Sys::Virt::Event subclass—works fine. I had to make one little change to make it not block: my $n = select($ro=$ri,$wo=$wi,$eo=$ei, (defined $timeout ? ($timeout ? $timeout/1000 : 0) : undef)); should be: my $n = select($ro=$ri,$wo=$wi,$eo=$ei, (defined $timeout ? ($timeout ? $timeout/1000 : 0) : 0)); because the 'undef' will cause select() to block until there’s something readable. On our systems, this seems to be every 4 seconds for some reason (is there a 4 second timeout in libvirt itself?).
Sounds good; if I can get something cleaner than this:
I’ll be sure to share it. Thanks again. Scott |
Attachment:
signature.asc
Description: Message signed with OpenPGP using GPGMail
_______________________________________________ libvirt-users mailing list libvirt-users@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvirt-users