aboutsummaryrefslogtreecommitdiffstats
path: root/src/assuan-support.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2018-11-02 10:26:19 +0000
committerWerner Koch <[email protected]>2018-11-02 10:26:19 +0000
commit4faa0ccf58c7a0f64f51dcbc8466add660080414 (patch)
tree9d44ffaa0b16b60c81e8ed0cd5855b6d2b87f0d1 /src/assuan-support.c
parentw32: Revamp the closing of system objects. (diff)
downloadgpgme-4faa0ccf58c7a0f64f51dcbc8466add660080414.tar.gz
gpgme-4faa0ccf58c7a0f64f51dcbc8466add660080414.zip
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 <[email protected]>
Diffstat (limited to 'src/assuan-support.c')
-rw-r--r--src/assuan-support.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/assuan-support.c b/src/assuan-support.c
index 7fbd48a8..705088e4 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