2007-09-14 Marcus Brinkmann <marcus@g10code.de>

* call-pinentry.c (agent_popup_message_stop): Implement kill for
	Windows.
This commit is contained in:
Marcus Brinkmann 2007-09-14 14:25:02 +00:00
parent 19009f9959
commit 58278955a7
2 changed files with 15 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-09-14 Marcus Brinkmann <marcus@g10code.de>
* call-pinentry.c (agent_popup_message_stop): Implement kill for
Windows.
2007-08-28 Werner Koch <wk@g10code.com>
* gpg-agent.c (main): Add option --faked-system-time.

View File

@ -812,7 +812,16 @@ agent_popup_message_stop (ctrl_t ctrl)
else if (popup_finished)
; /* Already finished and ready for joining. */
#ifdef HAVE_W32_SYSTEM
# warning need to implement a kill mechanism for pinentry
/* Older versions of assuan set PID to 0 on Windows to indicate an
invalid value. */
else if (pid != (pid_t) INVALID_HANDLE_VALUE
&& pid != 0)
{
HANDLE process = (HANDLE) pid;
/* Arbitrary error code. */
TerminateProcess (process, 1);
}
#else
else if (pid && ((rc=waitpid (pid, NULL, WNOHANG))==-1 || (rc == pid)) )
{ /* The daemon already died. No need to send a kill. However