io: Ensure all pending events are consumed in one libusb_handle_events call
commit359a273b36d810e0fda4117a3131116350db822b
authorHans de Goede <hdegoede@redhat.com>
Tue, 15 Oct 2013 13:15:31 +0000 (15 15:15 +0200)
committerHans de Goede <hdegoede@redhat.com>
Wed, 20 Nov 2013 12:21:28 +0000 (20 13:21 +0100)
tree0c2bd51b7034d764b646c02fabcd22a5711a3013
parent7b62a0a171ac0141a3d12237ab496c49cccd79df
io: Ensure all pending events are consumed in one libusb_handle_events call

Before this patch if ie multiple hot-plug events were pending, multiple
handle_events calls would be necessary to handle them all, this patch
changes handle_events so that the poll is re-done to check for more events
if there was activity on any of the special fds.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
libusb/io.c
libusb/version_nano.h