scd: Use pipe to kick the loop on NetBSD.
authorNIIBE Yutaka <gniibe@fsij.org>
Wed, 7 Feb 2018 03:43:07 +0000 (12:43 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Wed, 7 Feb 2018 03:43:07 +0000 (12:43 +0900)
commit015fe1c47b91da340e9df6bed908e0747ae8c60b
tree0aea137c75cabedc084bef46a7c312179a8b6831
parentf98e193c84250bbc49d5d1c625f54f2c14501ae3
scd: Use pipe to kick the loop on NetBSD.

* configure.ac (HAVE_PSELECT_NO_EINTR): New.
* scd/scdaemon.c (scd_kick_the_loop): Write to pipe.
(handle_connections): Use pipe.

--

On NetBSD, signal to the same process cannot unblock pselect,
with unknown reason.  Use pipe instead, for such systems.

GnuPG-bug-id: 3778
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
configure.ac
scd/scdaemon.c