1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

common: Fix process termination check at release.

* src/exechelp-posix.c (gnupg_process_release): When NOT terminated,
terminate and wait.
* src/exechelp-w32.c (gnupg_process_release): Likewise.

--

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2024-05-30 13:39:31 +09:00
parent aedeef6acf
commit 34045ed9e1
No known key found for this signature in database
GPG Key ID: 640114AF89DE6054
2 changed files with 2 additions and 2 deletions

View File

@ -997,7 +997,7 @@ gnupg_process_release (gnupg_process_t process)
if (!process)
return;
if (process->terminated)
if (!process->terminated)
{
gnupg_process_terminate (process);
gnupg_process_wait (process, 1);

View File

@ -1209,7 +1209,7 @@ gnupg_process_release (gnupg_process_t process)
if (!process)
return;
if (process->terminated)
if (!process->terminated)
{
gnupg_process_terminate (process);
gnupg_process_wait (process, 1);