]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
libusb(3): Ignore SIGPIPE when initializing the LibUSB v1.0 API.
authorHans Petter Selasky <hselasky@FreeBSD.org>
Wed, 2 Mar 2022 11:31:27 +0000 (12:31 +0100)
committerHans Petter Selasky <hselasky@FreeBSD.org>
Sat, 5 Mar 2022 14:40:08 +0000 (15:40 +0100)
commit4340df3418ecea57b5e48dec94ac4b1d4f760aca
treef9021ac1bf009a85cd91f72988a8d6c9334beaf2
parent61b0043efb8c14aac1db81e5c4254b5b0bacc255
libusb(3): Ignore SIGPIPE when initializing the LibUSB v1.0 API.

The LibUSB v1.0 emulation layer uses pipes internally to signal between
threads. When USB devices are reset, as part of loading firmware, SIGPIPE
may happen, and that is expected and should be ignored.

PR: 261891
Sponsored by: NVIDIA Networking

(cherry picked from commit d94d94e2c06b4331f706a3b4eca058041294ea05)
lib/libusb/libusb10.c
lib/libusb/libusb_global_linux.h