mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
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>
This commit is contained in:
parent
c4e6b6aba2
commit
01fa318be0
3 changed files with 8 additions and 15 deletions
|
@ -2475,9 +2475,8 @@ register_commands (assuan_context_t ctx)
|
|||
|
||||
|
||||
/* Startup the server. If FD is given as -1 this is simple pipe
|
||||
server, otherwise it is a regular server. Returns true if there
|
||||
are no more active asessions. */
|
||||
int
|
||||
server, otherwise it is a regular server. */
|
||||
void
|
||||
scd_command_handler (ctrl_t ctrl, gnupg_fd_t fd)
|
||||
{
|
||||
int rc;
|
||||
|
@ -2576,9 +2575,6 @@ scd_command_handler (ctrl_t ctrl, gnupg_fd_t fd)
|
|||
|
||||
if (stopme)
|
||||
scd_exit (0);
|
||||
|
||||
/* If there are no more sessions return true. */
|
||||
return !session_list;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue