hotplug: Remove use of pthread_cancel from linux_udev
authorChris Dickens <christopher.a.dickens@gmail.com>
Sat, 20 Jul 2013 20:01:41 +0000 (13:01 -0700)
committerHans de Goede <hdegoede@redhat.com>
Tue, 30 Jul 2013 15:20:39 +0000 (17:20 +0200)
commit6ac8cd3ef3400ae2f061c194d54c0020ccb01607
tree3ce31bf27d691478085367ae5d2f67ef62e83d59
parentd8a33df7dda5ebfae0ffd6272183a546aa99547d
hotplug: Remove use of pthread_cancel from linux_udev

Using pthread_cancel() presents the opportunity for deadlock, so
use a control pipe to cause the event thread to gracefully exit.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
libusb/os/linux_udev.c
libusb/version_nano.h