HomeFreeBSD

libusb: consider bad fd as a broken event

Description

libusb: consider bad fd as a broken event

Application can use libusb_get_pollfds to get pollfds from libusb then
close the fd themselves. This cause the hotplug thread unable to leave
because it will be consider as a invalid event then loop forever instead
of a broken event that should be quit immediately.

Reviewed by: bapt
Sponsored by: FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D50959

Details

Provenance
aokblastAuthored on Jun 20 2025, 9:45 PM
baptCommitted on Jun 25 2025, 12:40 PM
Reviewer
bapt
Differential Revision
D50959: libusb: consider bad fd as a broken event
Parents
rG7176e1e3b547: uftdi.4: Makeover!
Branches
Unknown
Tags
Unknown