[Pcsclite-cvs-commit] r2677 - /trunk/Drivers/ccid/src/parse.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Thu Nov 1 15:13:46 UTC 2007
Author: rousseau
Date: Thu Nov 1 15:13:46 2007
New Revision: 2677
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=2677
Log:
if usb_claim_interface() fails we ask the user to stop pcscd and retry
Modified:
trunk/Drivers/ccid/src/parse.c
Modified: trunk/Drivers/ccid/src/parse.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/Drivers/ccid/src/parse.c?rev=2677&op=diff
==============================================================================
--- trunk/Drivers/ccid/src/parse.c (original)
+++ trunk/Drivers/ccid/src/parse.c Thu Nov 1 15:13:46 2007
@@ -115,6 +115,11 @@
usb_close(dev_handle);
fprintf(stderr, "Can't claim interface %s/%s: %s\n",
bus->dirname, dev->filename, strerror(errno));
+ if (EBUSY == errno)
+ {
+ printf(" \33[01;31mPlease, stop pcscd and retry\33[0m\n\n");
+ return TRUE;
+ }
continue;
}
More information about the Pcsclite-cvs-commit
mailing list