OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Carlos Prados (cpradosyahoo.com)
Date: Fri Feb 01 2002 - 13:50:36 CST

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    Hi,

    --- Douglas Atique <datiqueterra.com.br> wrote:
    > Hi,
    > I have also compiled towitoko drivers, both 2.0.4 and yesterday
    > 2.0.5. The tester program works perfectly, only if I initialize the
    > reader then kill the tester there is no provision for uninitializing
    > the driver on a signal. I mean the LED on my ChipDrive Intern remains
    >
    > green until I start the tester (or pcsc-lite) again, in which case it
    >
    > is reinitialized and the LED turns off (if I have removed the card).

    Well, in fact I don't think this is driver responsability but
    application responsability. You can create a signal handler and add a
    call to CT_close() on it. The 'tester' app is just to dumb to implement
    this but your application should if it's likely to be killed by a
    signal.

    > Anyway I have compiled pcsc-lite with --enable-debug and tried it
    > several times with the testpcsc client but the pcscd daemon didn't
    > die before my eyes. Maybe it's something with the daemon mechanism. I
    >
    > am going to try building pcsc-lite again but now only with --enable-
    > daemon, not --enable-syslog to check if this makes any difference.

    I think you need to use --disable-syslog and --disable-daemon to see
    both the towitoko driver and the pcscd output in stdout.

    > Also, I wonder which signal Solaris sends pcscd when I shut Solaris
    > down, as Solaris seems to hang on killing it (or something else which
    >
    > happens only when I have started pcscd as a daemon).

    As Lodovic requested, try his developer version that will call driver's
    close function on receipt of the signal, and see if it changes
    something.

    Carlos.

    __________________________________________________
    Do You Yahoo!?
    Great stuff seeking new owners in Yahoo! Auctions!
    http://auctions.yahoo.com
    ***************************************************************
    Unix Smart Card Developers - M.U.S.C.L.E.
    (Movement for the Use of Smart Cards in a Linux Environment)
    http://www.linuxnet.com/
    To unsubscribe send an email to majordomolinuxnet.com with
    unsubscribe sclinux
    ***************************************************************