From 45a20cb182ca835e2ef36b4a97ef4fb9df92c90a Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Fri, 21 Sep 2012 15:32:25 +0000 Subject: [PATCH 11/21] UsbDeviceManager: Don't warn on EINTR Signed-off-by: Hans de Goede Resolves: rhbz#820964 --- 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 539cefe..3684485 100644 --- a/gtk/usb-device-manager.c +++ b/gtk/usb-device-manager.c @@ -915,7 +915,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.1