Home GnuPG
Diffusion GnuPG 70bb9c512727

scd: Fix how scdaemon pipe server finishes.

Description

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.

(cherry picked from commit 01fa318be0f8ca60c78d99403fbfb75edb521b16)

  • GnuPG-bug-id: T7151
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Jun 17 2024, 4:44 AM
wernerCommitted on Jul 1 2024, 2:14 PM
Parents
rG76066d71f49e: agent: Clean up for scdaemon handling.
Branches
Unknown
Tags
Unknown
Tasks
T7151: graceful shutdown: DEVINFO should be a gpg-agent command: also watching input close