hotplug: ensure udev monitor fd is non-blocking
authorChris Dickens <christopher.a.dickens@gmail.com>
Thu, 13 Jun 2013 17:59:11 +0000 (10:59 -0700)
committerHans de Goede <hdegoede@redhat.com>
Fri, 14 Jun 2013 07:48:40 +0000 (09:48 +0200)
commit4d099d08a99aff38c72e393d7eef94b6436d39f8
treea45ff1eb642fa86244e39c8aa4305ea01144f783
parent41091f7a6ba7b0243f064b1999f7b4af84f6c3cf
hotplug: ensure udev monitor fd is non-blocking

Some older versions of udev do not automatically set the udev
monitor fd to non-blocking mode. This patch ensures that this is
always set.

HdG: Get flags then or in O_NONBLOCK and set them, rather then setting flags
to only O_NONBLOCK.

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