X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Flibudev%2Flibudev-monitor.c;h=2ad9e1c3adbc1d134d36f31f8b557382dde49fab;hp=32319aca7b195ee13bb1f0110e1f2148ce66ffa3;hb=b30b4260255702345eab1ac076bb00869057c16b;hpb=10b6f904cc58c5a725f123e17819516eca606a3e diff --git a/src/libudev/libudev-monitor.c b/src/libudev/libudev-monitor.c index 32319aca7..2ad9e1c3a 100644 --- a/src/libudev/libudev-monitor.c +++ b/src/libudev/libudev-monitor.c @@ -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. *