[Pcsclite-cvs-commit] r7028 - trunk/PCSC/src
ludovic.rousseau at free.fr
ludovic.rousseau at free.fr
Thu Nov 6 14:24:03 UTC 2014
Author: rousseau
Date: 2014-11-06 14:24:02 +0000 (Thu, 06 Nov 2014)
New Revision: 7028
Modified:
trunk/PCSC/src/hotplug_libudev.c
Log:
Scan the USB bus at least once before accepting client connections
The bug was introduced in pcsc-lite version 1.8.12 with revision 6951.
Closes Alioth bug [#314869] pcscd: Socket activation not working on first try
https://alioth.debian.org/tracker/index.php?func=detail&aid=314869&group_id=30105&atid=410085
Modified: trunk/PCSC/src/hotplug_libudev.c
===================================================================
--- trunk/PCSC/src/hotplug_libudev.c 2014-11-06 13:56:10 UTC (rev 7027)
+++ trunk/PCSC/src/hotplug_libudev.c 2014-11-06 14:24:02 UTC (rev 7028)
@@ -597,8 +597,6 @@
pthread_exit(NULL);
}
- HPScanUSB(Udev);
-
pfd.fd = fd;
pfd.events = POLLIN;
@@ -724,6 +722,9 @@
return SCARD_F_INTERNAL_ERROR;
}
+ /* scan the USB bus at least once before accepting client connections */
+ HPScanUSB(Udev);
+
if (ThreadCreate(&usbNotifyThread, 0,
(PCSCLITE_THREAD_FUNCTION( )) HPEstablishUSBNotifications, NULL))
{
More information about the Pcsclite-cvs-commit
mailing list