summaryrefslogtreecommitdiff
path: root/agent/call-pinentry.c
diff options
context:
space:
mode:
Diffstat (limited to 'agent/call-pinentry.c')
-rw-r--r--agent/call-pinentry.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/agent/call-pinentry.c b/agent/call-pinentry.c
index ad1bd03..c945c13 100644
--- a/agent/call-pinentry.c
+++ b/agent/call-pinentry.c
@@ -170,6 +170,16 @@ static void
atfork_cb (void *opaque, int where)
{
ctrl_t ctrl = opaque;
+#ifndef HAVE_W32_SYSTEM
+ struct sigaction sa;
+
+ /* Pop up message should be able to be killed by SIGINT. */
+ sigemptyset (&sa.sa_mask);
+ sa.sa_handler = SIG_DFL;
+ sa.sa_flags = 0;
+ sigaction (SIGINT, &sa, NULL);
+ sigprocmask (SIG_SETMASK, &sa.sa_mask, NULL); /* Unblock all signals. */
+#endif
if (!where)
{
@@ -770,7 +780,7 @@ agent_askpin (ctrl_t ctrl,
if (errtext)
{
- /* TRANLATORS: The string is appended to an error message in
+ /* TRANSLATORS: The string is appended to an error message in
the pinentry. The %s is the actual error message, the
two %d give the current and maximum number of tries. */
snprintf (line, DIM(line)-1, _("SETERROR %s (try %d of %d)"),
@@ -1159,8 +1169,7 @@ agent_popup_message_stop (ctrl_t ctrl)
assuan_set_flag (entry_ctx, ASSUAN_NO_WAITPID, 1);
}
else if (pid > 0)
- kill (pid, SIGKILL); /* Need to use SIGKILL due to bad
- interaction of SIGINT with Pth. */
+ kill (pid, SIGINT);
#endif
/* Now wait for the thread to terminate. */