Fixed problem with unplugging card readers.
authorWerner Koch <wk@gnupg.org>
Tue, 25 Jan 2011 21:03:16 +0000 (22:03 +0100)
committerWerner Koch <wk@gnupg.org>
Tue, 25 Jan 2011 21:03:16 +0000 (22:03 +0100)
commit576de6e539646f021dafff8d4e3327c115a51ad4
tree6f0f0d6043a7dce6291f9b5e3c38c424f171efb0
parentca2d3157656d542ceec50607d0b92f13542a0fe7
Fixed problem with unplugging card readers.

From Grant Olsons's mail to gnupg-devel@:

  This is three-quarters NIIBE and one-quarter me, but I though it would
  be easier to have a single complete patch that applies to
  STABLE-BRANCH-2-0 than two patches floating around.

  This is basically NIIBE Yatuka's patch here:

  http://lists.gnupg.org/pipermail/gnupg-devel/2010-November/025828.html

  Plus another check that closes down the reader explicitly if we get a
  SW_HOST_NO_READER error, so that an unplugged reader doesn't hold onto
  the first slot, preventing us from getting to the active plugged reader.
THANKS
scd/ChangeLog
scd/command.c