Changeset 1136 for trunk/src/ifd


Ignore:
Timestamp:
02/06/09 13:32:19 (3 years ago)
Author:
ludovic.rousseau
Message:

give priority to pcsc-lite for CCID devices

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ifd/ifd-ccid.c

    r1134 r1136  
    1616#include <stdlib.h> 
    1717#include <string.h> 
     18#include <sys/stat.h> 
     19#include <unistd.h> 
    1820 
    1921#define CCID_ERR_ABORTED        0xFF    /* CMD ABORTED */ 
     
    490492        unsigned char *p; 
    491493        int support_events = 0; 
     494 
     495#define PCSCLITE_FILE "/var/run/pcscd/pcscd.comm" 
     496        struct stat buf; 
     497 
     498        /* give priority to pcsc-lite for CCID devices */ 
     499        if (0 == stat(PCSCLITE_FILE, &buf)) 
     500                sleep(3); 
    492501 
    493502        if (ifd_usb_get_device(dev, &de)) { 
Note: See TracChangeset for help on using the changeset viewer.