[Pcsclite-cvs-commit] r2485 - trunk/Drivers/ccid/src
Ludovic Rousseau
rousseau at alioth.debian.org
Thu Mar 15 22:39:46 CET 2007
Author: rousseau
Date: 2007-03-15 21:39:46 +0000 (Thu, 15 Mar 2007)
New Revision: 2485
Modified:
trunk/Drivers/ccid/src/parse.c
Log:
if usb_control_msg() fails because the device is busy this is because
pcscd has claimed the device already
Modified: trunk/Drivers/ccid/src/parse.c
===================================================================
--- trunk/Drivers/ccid/src/parse.c 2007-03-15 20:56:25 UTC (rev 2484)
+++ trunk/Drivers/ccid/src/parse.c 2007-03-15 21:39:46 UTC (rev 2485)
@@ -286,7 +286,14 @@
/* we got an error? */
if (n <= 0)
+ {
printf(" IFD does not support GET CLOCK FREQUENCIES request: %s\n", strerror(errno));
+ if (EBUSY == errno)
+ {
+ printf(" \33[01;31mPlease, stop pcscd and retry\33[0m\n\n");
+ return TRUE;
+ }
+ }
else
if (n % 4) /* not a multiple of 4 */
printf(" wrong size for GET CLOCK FREQUENCIES: %d\n", n);
More information about the Pcsclite-cvs-commit
mailing list