DragonFly commits List (threaded) for 2012-10
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
git: kernel - Auto-initiate message stream for udev on read()
commit cd6f4f79801c968685a3e0069637790bc2fa4994
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date: Wed Oct 24 19:12:50 2012 -0700
kernel - Auto-initiate message stream for udev on read()
* Ensure the device is initiated when read() is issued for /dev/udev,
otherwise no events will be queued.
This allows a simple cat /dev/udev to return the XML stream without
having to issue any ioctls.
* Reorder the devfs scan and initiation to close a race where an event could
be lost.
Summary of changes:
sys/kern/kern_udev.c | 35 ++++++++++++++++++++++++++++-------
1 files changed, 28 insertions(+), 7 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/cd6f4f79801c968685a3e0069637790bc2fa4994
--
DragonFly BSD source repository
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]