[git] GPGME - branch, master, updated. gpgme-1.12.0-40-g4faa0cc

by Werner Koch cvs at cvs.gnupg.org
Fri Nov 2 11:27:40 CET 2018


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GnuPG Made Easy".

The branch, master has been updated
       via  4faa0ccf58c7a0f64f51dcbc8466add660080414 (commit)
      from  da89528ac39b687bfbed2209ca2637e3bd8e0ac5 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 4faa0ccf58c7a0f64f51dcbc8466add660080414
Author: Werner Koch <wk at gnupg.org>
Date:   Fri Nov 2 11:26:19 2018 +0100

    w32: Don't use CloseHandle on an arbitrary integer.
    
    * src/assuan-support.c (my_waitpid): Do not close the PID = it is not
    a handle.
    --
    
    At some time in the distant past we might have used the process object
    as pid which obviously required a close.  However this was changed and
    so what we did here was to close an arbitrary handle (one which
    matches the pid).
    
    GnuPG-bug-id: 4237
    Signed-off-by: Werner Koch <wk at gnupg.org>

diff --git a/src/assuan-support.c b/src/assuan-support.c
index 7fbd48a..705088e 100644
--- a/src/assuan-support.c
+++ b/src/assuan-support.c
@@ -219,7 +219,7 @@ my_waitpid (assuan_context_t ctx, pid_t pid,
   (void)nowait;
   (void)status;
   (void)options;
-  CloseHandle ((HANDLE) pid);
+  (void)pid;  /* Just a number without a kernel object.  */
 #else
   /* We can't just release the PID, a waitpid is mandatory.  But
      NOWAIT in POSIX systems just means the caller already did the

-----------------------------------------------------------------------

Summary of changes:
 src/assuan-support.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


hooks/post-receive
-- 
GnuPG Made Easy
http://git.gnupg.org




More information about the Gnupg-commits mailing list