w32: Don't use CloseHandle on an arbitrary integer.
authorWerner Koch <wk@gnupg.org>
Fri, 2 Nov 2018 10:26:19 +0000 (11:26 +0100)
committerWerner Koch <wk@gnupg.org>
Fri, 2 Nov 2018 10:26:19 +0000 (11:26 +0100)
commit4faa0ccf58c7a0f64f51dcbc8466add660080414
tree9d44ffaa0b16b60c81e8ed0cd5855b6d2b87f0d1
parentda89528ac39b687bfbed2209ca2637e3bd8e0ac5
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@gnupg.org>
src/assuan-support.c