From 2736178f58168c2759d93cd6a4f8338451a1a1b0 Mon Sep 17 00:00:00 2001 From: Ben Kibbey Date: Tue, 12 Feb 2013 19:37:50 -0500 Subject: [PATCH] Send SIGINT rather than SIGTERM to terminate the local pinentry. Fixes restoring the ncurses pinentry terminal upon timeout. Fix observed on the gnupg-devel mailing list. --- src/pinentry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pinentry.c b/src/pinentry.c index 7e808f46..7475db1d 100644 --- a/src/pinentry.c +++ b/src/pinentry.c @@ -326,7 +326,7 @@ terminate_pinentry (pwm_t * pwm) if (kill (pid, 0) == 0) { - if (kill (pid, SIGTERM) == -1) + if (kill (pid, SIGINT) == -1) { if (kill (pid, SIGKILL) == -1) return gpg_error_from_errno (errno); -- 2.11.4.GIT