scd: Finish DEVINFO --watch command on input close.
* scd/app.c (card_list_signal): Use pipe on POSIX system, event on Windows. (card_list_wait): Detect input change as well as card list event change. (app_send_devinfo): Finish the command on input close. (initialize_module_command): Initialize pipe or event.
(cherry picked from commit 36d8cffc6cd2838e7cb439c566fdd2b3dd076c15)
- GnuPG-bug-id: T7151
- Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>