chiark / gitweb /
libudev: clarify that udev_monitor_receive_device() is non-blocking
authorKay Sievers <kay@vrfy.org>
Mon, 18 Jun 2012 13:45:01 +0000 (15:45 +0200)
committerKay Sievers <kay@vrfy.org>
Mon, 18 Jun 2012 13:58:44 +0000 (15:58 +0200)
Based on a patch from: Sam Thursfield <ssssam@gmail.com>
https://bugs.freedesktop.org/show_bug.cgi?id=51202

Makefile.am
src/libudev/libudev-monitor.c

index 98a85063ca1e9cc7a8f8dd1fc56c9ac900f6dfb5..77b4aa74eed2e1f9dcaee9bc104a05e66f53e103 100644 (file)
@@ -28,7 +28,7 @@ LIBUDEV_REVISION=1
 LIBUDEV_AGE=0
 
 LIBGUDEV_CURRENT=1
-LIBGUDEV_REVISION=1
+LIBGUDEV_REVISION=2
 LIBGUDEV_AGE=1
 
 LIBSYSTEMD_LOGIN_CURRENT=2
index 32319aca7b195ee13bb1f0110e1f2148ce66ffa3..2ad9e1c3adbc1d134d36f31f8b557382dde49fab 100644 (file)
@@ -494,6 +494,11 @@ tag:
  *
  * Only socket connections with uid=0 are accepted.
  *
+ * The monitor socket is by default set to NONBLOCK. A variant of poll() on
+ * the file descriptor returned by udev_monitor_get_fd() should to be used to
+ * wake up when new devices arrive, or alternatively the file descriptor
+ * switched into blocking mode.
+ *
  * The initial refcount is 1, and needs to be decremented to
  * release the resources of the udev device.
  *