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:
parent
aedeef6acf
commit
34045ed9e1
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user