[Pcsclite-cvs-commit] r3305 - /trunk/PCSC/src/eventhandler.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Fri Feb 6 08:54:06 UTC 2009


Author: rousseau
Date: Fri Feb  6 08:54:05 2009
New Revision: 3305

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=3305
Log:
EHStatusHandlerThread(): call StatSynchronize() before exiting the
thread. Without this SCardGetStatusChange() may not return.

Thanks to Roberto Rizza for the bug report and patch.

Modified:
    trunk/PCSC/src/eventhandler.c

Modified: trunk/PCSC/src/eventhandler.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/eventhandler.c?rev=3305&op=diff
==============================================================================
--- trunk/PCSC/src/eventhandler.c (original)
+++ trunk/PCSC/src/eventhandler.c Fri Feb  6 08:54:05 2009
@@ -470,6 +470,7 @@
 			/*
 			 * Exit and notify the caller
 			 */
+			(void)StatSynchronize(rContext->readerState);
 			Log1(PCSC_LOG_INFO, "Die");
 			rContext->dwLockId = 0;
 			(void)SYS_ThreadExit(NULL);




More information about the Pcsclite-cvs-commit mailing list