[Pcsclite-cvs-commit] r5151 - /trunk/PCSC/src/hotplug_libusb.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Tue Aug 17 09:10:32 UTC 2010


Author: rousseau
Date: Tue Aug 17 09:10:29 2010
New Revision: 5151

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5151
Log:
HPSearchHotPluggables(): wait for initial readers to setup only if
HPEstablishUSBNotifications is created. Otherwise the process is
blocked for ever.

Modified:
    trunk/PCSC/src/hotplug_libusb.c

Modified: trunk/PCSC/src/hotplug_libusb.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/hotplug_libusb.c?rev=5151&op=diff
==============================================================================
--- trunk/PCSC/src/hotplug_libusb.c (original)
+++ trunk/PCSC/src/hotplug_libusb.c Tue Aug 17 09:10:29 2010
@@ -440,12 +440,14 @@
 	}
 
 	if (HPReadBundleValues())
+	{
 		ThreadCreate(&usbNotifyThread, THREAD_ATTR_DETACHED,
 			(PCSCLITE_THREAD_FUNCTION( )) HPEstablishUSBNotifications, pipefd);
 
-	/* Wait for initial readers to setup */
-	read(pipefd[0], &c, 1);
-	close(pipefd[0]);
+		/* Wait for initial readers to setup */
+		read(pipefd[0], &c, 1);
+		close(pipefd[0]);
+	}
 
 	return 0;
 }




More information about the Pcsclite-cvs-commit mailing list