From 81389383a3169fe5130162dbb4cbc4bb0e806c3a Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 10 Aug 2011 11:47:04 +0200 Subject: Made the KILLAGENT and KILLSCD commands working again. This requires that GnuPG is build with a newer version of Libassuan (2.0.3). --- scd/command.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'scd/command.c') diff --git a/scd/command.c b/scd/command.c index a579b24eb..9bb500523 100644 --- a/scd/command.c +++ b/scd/command.c @@ -1862,7 +1862,15 @@ cmd_killscd (assuan_context_t ctx, char *line) (void)line; ctrl->server_local->stopme = 1; +#ifdef ASSUAN_FORCE_CLOSE + assuan_set_flag (ctx, ASSUAN_FORCE_CLOSE, 1); + return 0; +#else + /* Actually returning an EOF does not anymore work with modern + Libassuan versions. However we keep that non working code until + we make a Libassuan with the force close flag a requirement. */ return gpg_error (GPG_ERR_EOF); +#endif } -- cgit v1.2.3