FreeBSD Bugzilla – Attachment 196888 Details for
Bug 231076
libusb_cancel_transfer() does NOT cancel a transfer after the USB device is removed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
LibUSB patch
libusb.diff (text/plain), 695 bytes, created by
Hans Petter Selasky
on 2018-09-05 15:51:41 UTC
(
hide
)
Description:
LibUSB patch
Filename:
MIME Type:
Creator:
Hans Petter Selasky
Created:
2018-09-05 15:51:41 UTC
Size:
695 bytes
patch
obsolete
>Index: libusb10_io.c >=================================================================== >--- libusb10_io.c (revision 338334) >+++ libusb10_io.c (working copy) >@@ -107,6 +107,7 @@ > int timeout; > int i; > int err; >+ int process_all = 0; > > DPRINTF(ctx, LIBUSB_DEBUG_FUNCTION, "libusb10_handle_events_sub enter"); > >@@ -161,7 +162,7 @@ > if (ppdev[i] != NULL) { > dev = libusb_get_device(ppdev[i]); > >- if (fds[i].revents == 0) >+ if (fds[i].revents == 0 && process_all == 0) > err = 0; /* nothing to do */ > else > err = libusb20_dev_process(ppdev[i]); >@@ -183,6 +184,7 @@ > while (1) { > if (read(fds[i].fd, &dummy, 1) != 1) > break; >+ process_all = 1; > } > } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 231076
:
196888
|
196991
|
197050