1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00
gnupg/scd
NIIBE Yutaka 031e3fa7b9 scd: Wake up the select when new USB scan.
* scd/scdaemon.c (update_fdset_for_usb): Wake up the select(2).
(handle_connections): Use a kind of "self-pipe" technique.

--

Use pipe to wake up select(2).  If UNIX-only, signal could be used.  For
portability, "self-pipe" is better, here.  Setup for non-blocking for
pipe fds are not needed, because speed of USB device insertion is
limited by human physical interaction;  No one can do hundreds of
device insertion/removal-s per second.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
2017-01-27 14:34:21 +09:00
..
apdu.c scd: Only submit apdu_get_status when needed. 2017-01-26 22:02:41 +09:00
apdu.h scd: Only submit apdu_get_status when needed. 2017-01-26 22:02:41 +09:00
app-common.h scd: Cleanup SERIALNO protocol. 2017-01-18 16:03:47 +09:00
app-dinsig.c Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
app-geldkarte.c Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
app-help.c Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
app-nks.c Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
app-openpgp.c scd: Cleanup SERIALNO protocol. 2017-01-18 16:03:47 +09:00
app-p15.c Fix format string errors and some missing error case initialization. 2017-01-23 16:33:01 +01:00
app-sc-hsm.c Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
app.c scd: Only submit apdu_get_status when needed. 2017-01-26 22:02:41 +09:00
atr.c Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
atr.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
ccid-driver.c scd: Only submit apdu_get_status when needed. 2017-01-26 22:02:41 +09:00
ccid-driver.h scd: Only submit apdu_get_status when needed. 2017-01-26 22:02:41 +09:00
ChangeLog-2011 Generate the ChangeLog from commit logs. 2011-12-01 11:09:02 +01:00
command.c scd: Fix APP reference counting. 2017-01-26 19:32:51 +09:00
iso7816.c Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
iso7816.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
Makefile.am Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
scdaemon-w32info.rc w32: Add icons and version information. 2013-05-07 21:35:48 +02:00
scdaemon.c scd: Wake up the select when new USB scan. 2017-01-27 14:34:21 +09:00
scdaemon.h scd: Only submit apdu_get_status when needed. 2017-01-26 22:02:41 +09:00