Home GnuPG
Diffusion GnuPG 2d91febbd8d3

scd: Fix resetting and closing of the reader.
2d91febbd8d3Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

scd: Fix resetting and closing of the reader.

* scd/command.c (update_card_removed): Do no act on an invalid VRDR.
(do_reset): Ignore apdu_reset error codes for no and inactive card.
Close the reader before setting the slot to -1.
(update_reader_status_file): Notify the application before closing the
reader.

With this change the scd now works as it did in the past. In
particular there is no more endless loop trying to open the reader by
the update_reader_status_file ticker function. That bug basically
blocked all card operations until the scdaemon was killed.

Details

Provenance
wernerAuthored on Dec 14 2011, 10:30 AM
Parents
rG07ea8c56b507: scd: Add debug option for reader function calls.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rG2d91febbd8d3: scd: Fix resetting and closing of the reader. (authored by Werner Koch <wk@gnupg.org>).Dec 14 2011, 10:30 AM