summaryrefslogtreecommitdiffstats
path: root/scd/scdaemon.h
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2024-06-17 04:44:41 +0200
committerNIIBE Yutaka <gniibe@fsij.org>2024-06-17 04:44:41 +0200
commit01fa318be0f8ca60c78d99403fbfb75edb521b16 (patch)
treee27eab215cc0a2617c0f2b2b17a9b5254f134647 /scd/scdaemon.h
parentm4: Update m4 files. (diff)
downloadgnupg2-01fa318be0f8ca60c78d99403fbfb75edb521b16.tar.xz
gnupg2-01fa318be0f8ca60c78d99403fbfb75edb521b16.zip
scd: Fix how scdaemon pipe server finishes.
* scd/scdaemon.h (scd_command_handler): Fix the return type. * scd/command.c (scd_command_handler): Not return a value. * scd/scdaemon.c (pipe_server): Make it auto variable in main. (main): Use auto PIPE_SERVER variable. (start_connection_thread): When it's a pipe connection and it finishes, let the service shutdown. -- GnuPG-bug-id: 7151 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'scd/scdaemon.h')
-rw-r--r--scd/scdaemon.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/scd/scdaemon.h b/scd/scdaemon.h
index 16873c54b..5076588f0 100644
--- a/scd/scdaemon.h
+++ b/scd/scdaemon.h
@@ -141,7 +141,7 @@ const char *scd_get_socket_name (void);
/*-- command.c --*/
gpg_error_t initialize_module_command (void);
-int scd_command_handler (ctrl_t, gnupg_fd_t);
+void scd_command_handler (ctrl_t, gnupg_fd_t);
void send_status_info (ctrl_t ctrl, const char *keyword, ...)
GPGRT_ATTR_SENTINEL(1);
gpg_error_t send_status_direct (ctrl_t ctrl,