[Pcsclite-cvs-commit] r3096 - /trunk/Drivers/ccid/src/ifdhandler.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Mon Aug 18 09:46:46 UTC 2008
Author: rousseau
Date: Mon Aug 18 09:46:46 2008
New Revision: 3096
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=3096
Log:
IFDHSleep(): just sleep for 5 seconds since the polling thread is NOT
killable so pcscd event thread must loop to exit cleanly
Once the driver (libusb in fact) will support
TAG_IFD_POLLING_THREAD_KILLABLE then we could use a much longer delay
and be killed before pcscd exits
Modified:
trunk/Drivers/ccid/src/ifdhandler.c
Modified: trunk/Drivers/ccid/src/ifdhandler.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/Drivers/ccid/src/ifdhandler.c?rev=3096&op=diff
==============================================================================
--- trunk/Drivers/ccid/src/ifdhandler.c (original)
+++ trunk/Drivers/ccid/src/ifdhandler.c Mon Aug 18 09:46:46 2008
@@ -276,7 +276,14 @@
static RESPONSECODE IFDHSleep(DWORD Lun)
{
DEBUG_INFO2("lun: %X", Lun);
- sleep(60*60); /* 1 hour */
+ /* just sleep for 5 seconds since the polling thread is NOT killable
+ * so pcscd event thread must loop to exit cleanly
+ *
+ * Once the driver (libusb in fact) will support
+ * TAG_IFD_POLLING_THREAD_KILLABLE then we could use a much longer delay
+ * and be killed before pcscd exits
+ */
+ sleep(5); /* 5 seconds */
return IFD_SUCCESS;
}
#endif
More information about the Pcsclite-cvs-commit
mailing list