diff options
Diffstat (limited to 'gpgme/w32-io.c')
-rw-r--r-- | gpgme/w32-io.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gpgme/w32-io.c b/gpgme/w32-io.c index e83a2782..4af1b68f 100644 --- a/gpgme/w32-io.c +++ b/gpgme/w32-io.c @@ -1156,7 +1156,11 @@ _gpgme_io_spawn (const char *path, char **argv, (int) GetLastError ()); TRACE_SUC1 ("process=%p", pi.hProcess); - return handle_to_pid (pi.hProcess); + + /* We don't need to wait for the process. */ + CloseHandle (pi.hProcess); + + return TRACE_SYSRES (0); } |