Hello I am trying replace the active polling of the USB bus in pcscd by a udev event. I see that OpenCT has a udev rule file etc/openct.udev that starts the script etc/openct_usb.
This etc/openct_usb script does: [...] # race condition in the kernel, $DEVICE might not exist now sleep 1 [...] I also have the same problem with udev. The event is sent before the device is really present in /sys/ and then pcscd do not see it :-( udev provides the WAIT_FOR_SYSFS="foo" option and is documented as: WAIT_FOR_SYSFS Wait for the specified sysfs file of the device to be created. Can be used to fight against kernel sysfs timing issues. So I use WAIT_FOR_SYSFS="dev" in my udev file but the rule is executed 6 seconds after the reader is plugged in. Not nice for a hotplug mechanism. I also have two lines in /var/log/daemon.log: Oct 23 16:02:55 neo udevd-event[14830]: wait_for_sysfs: waiting for '/sys/devices/pci0000:00/0000:00:1d.1/usb2/2-2/2-2.3/dev' failed Oct 23 16:02:59 neo udevd-event[14832]: wait_for_sysfs: waiting for '/sys/devices/pci0000:00/0000:00:1d.1/usb2/2-2/2-2.3/2-2.3:1.0/dev' failed Am I doing something wrong? I am using udev 079-0ubuntu34 (Ubuntu Dapper). Is this corrected in a newer version of udev? (latest version is 100) Any udev expert here? Thanks, -- Dr. Ludovic Rousseau _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel