[Pcsclite-cvs-commit] r2039 - trunk/Drivers/ccid/examples

Ludovic Rousseau rousseau at costa.debian.org
Thu May 4 13:14:57 UTC 2006


Author: rousseau
Date: 2006-05-04 13:14:56 +0000 (Thu, 04 May 2006)
New Revision: 2039

Modified:
   trunk/Drivers/ccid/examples/scardcontrol.c
Log:
Use a timeout of 0.1 second instead of 0 for waiting characters from the
keyboard


Modified: trunk/Drivers/ccid/examples/scardcontrol.c
===================================================================
--- trunk/Drivers/ccid/examples/scardcontrol.c	2006-05-04 12:13:47 UTC (rev 2038)
+++ trunk/Drivers/ccid/examples/scardcontrol.c	2006-05-04 13:14:56 UTC (rev 2039)
@@ -340,8 +340,8 @@
 
 		FD_ZERO(&fd);
 		FD_SET(STDIN_FILENO, &fd);	/* stdin */
-		timeout.tv_sec = 0;			/* timeout = 0 */
-		timeout.tv_usec = 0;
+		timeout.tv_sec = 0;			/* timeout = 0.1s */
+		timeout.tv_usec = 100000;
 
 		/* we only try to read stdin if the pinpad is on a keyboard
 		 * we do not read stdin for a SPR 532 for example */
@@ -484,8 +484,8 @@
 		{
 			FD_ZERO(&fd);
 			FD_SET(STDIN_FILENO, &fd);	/* stdin */
-			timeout.tv_sec = 0;			/* timeout = 0 */
-			timeout.tv_usec = 0;
+			timeout.tv_sec = 0;			/* timeout = 0.1s */
+			timeout.tv_usec = 100000;
 
 			/* we only try to read stdin if the pinpad is on a keyboard
 			 * we do not read stdin for a SPR 532 for example */




More information about the Pcsclite-cvs-commit mailing list