aboutsummaryrefslogtreecommitdiffstats
path: root/scd/scdaemon.h
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2017-01-27 05:34:21 +0000
committerNIIBE Yutaka <[email protected]>2017-01-27 05:34:21 +0000
commit031e3fa7b9a6770a4de1a184555250feeba0d26f (patch)
treef5e0ad752496314fc0dae639b50a8ee035bb3917 /scd/scdaemon.h
parentscd: Only submit apdu_get_status when needed. (diff)
downloadgnupg-031e3fa7b9a6770a4de1a184555250feeba0d26f.tar.gz
gnupg-031e3fa7b9a6770a4de1a184555250feeba0d26f.zip
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 <[email protected]>
Diffstat (limited to 'scd/scdaemon.h')
0 files changed, 0 insertions, 0 deletions