aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2025-08-08 12:48:48 +0000
committerWerner Koch <[email protected]>2025-08-08 12:48:48 +0000
commitae5f3fc3db2797a646fdb3dd8565b065af347841 (patch)
tree2873d2cceedbf2dec232230ccf98e77d19b20ee4 /src
parentMake it easier to maintain gpgme.h by using forward declarations. (diff)
downloadgpgme-master.tar.gz
gpgme-master.zip
w32: gpgme-w32spawn now appends to the debug log if enabled.HEADmaster
--
Diffstat (limited to 'src')
-rw-r--r--src/gpgme-w32spawn.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gpgme-w32spawn.c b/src/gpgme-w32spawn.c
index 03ad1fbf..247d6009 100644
--- a/src/gpgme-w32spawn.c
+++ b/src/gpgme-w32spawn.c
@@ -469,7 +469,12 @@ wmain (int argc, const wchar_t * const *argv)
}
#ifdef DEBUG_TO_FILE
- mystderr = fopen ("h:/gpgme-w32spawn.log", "w");
+ {
+ FILE *tmpfp = fopen ("h:/gpgme-w32spawn.log", "a");
+ if (tmpfp)
+ mystderr = tmpfp;
+ fputs (PGM": started\n", mystderr);
+ }
#endif
argv_spawn = translate_handles (argv[1], &argv[2], fd_list, &flags);