diff options
author | Werner Koch <[email protected]> | 2017-01-06 17:45:14 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2017-01-06 17:47:53 +0000 |
commit | 8d774904c8066d8c0f19cfffe2d568979bb8c470 (patch) | |
tree | fa71b0e160b7f30cf2d342a7bc4a1a166f1fc6ef /common/exechelp-w32.c | |
parent | doc: Document summary values of TOFU_STATS (diff) | |
download | gnupg-8d774904c8066d8c0f19cfffe2d568979bb8c470.tar.gz gnupg-8d774904c8066d8c0f19cfffe2d568979bb8c470.zip |
agent,w32: Fix annoying output to DebugView.
* agent/gpg-agent.c (startup_fd_list): Do not define for W32.
(main) [W32]: Do not call get_all_open_fds.
--
GnuPG-bug-id: 2267
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'common/exechelp-w32.c')
-rw-r--r-- | common/exechelp-w32.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/common/exechelp-w32.c b/common/exechelp-w32.c index a7a6db369..e79ee5b14 100644 --- a/common/exechelp-w32.c +++ b/common/exechelp-w32.c @@ -128,11 +128,14 @@ close_all_fds (int first, int *except) /* Returns an array with all currently open file descriptors. The end - of the array is marked by -1. The caller needs to release this - array using the *standard free* and not with xfree. This allow the - use of this function right at startup even before libgcrypt has - been initialized. Returns NULL on error and sets ERRNO - accordingly. */ + * of the array is marked by -1. The caller needs to release this + * array using the *standard free* and not with xfree. This allow the + * use of this function right at startup even before libgcrypt has + * been initialized. Returns NULL on error and sets ERRNO + * accordingly. Note that fstat prints a warning to DebugView for all + * invalid fds which is a bit annoying. We actually do not need this + * function in real code (close_all_fds is a dummy anyway) but we keep + * it for use by t-exechelp.c. */ int * get_all_open_fds (void) { |