[Spice-devel] [PATCH spice-gtk 5/5] UsbDeviceManager: Don't warn on EINTR

Hans de Goede hdegoede at redhat.com
Fri Sep 21 08:32:25 PDT 2012


Signed-off-by: Hans de Goede <hdegoede at redhat.com>
---
 gtk/usb-device-manager.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gtk/usb-device-manager.c b/gtk/usb-device-manager.c
index bde9c45..630dfe8 100644
--- a/gtk/usb-device-manager.c
+++ b/gtk/usb-device-manager.c
@@ -918,7 +918,7 @@ static gpointer spice_usb_device_manager_usb_ev_thread(gpointer user_data)
 
     while (priv->event_thread_run) {
         rc = libusb_handle_events(priv->context);
-        if (rc) {
+        if (rc && rc != LIBUSB_ERROR_INTERRUPTED) {
             const char *desc = spice_usbutil_libusb_strerror(rc);
             g_warning("Error handling USB events: %s [%i]", desc, rc);
         }
-- 
1.7.12



More information about the Spice-devel mailing list