diff options
author | Werner Koch <wk@gnupg.org> | 2010-08-23 21:26:05 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2010-08-23 21:26:05 +0200 |
commit | d9791119d0967717e7690e85a69bac830ddf65f4 (patch) | |
tree | ad09c31d1d2842e6c5f47e27d28c812b391383cb /common/init.c | |
parent | Reworked the posix and w32 exechelpers. (diff) | |
download | gnupg2-d9791119d0967717e7690e85a69bac830ddf65f4.tar.xz gnupg2-d9791119d0967717e7690e85a69bac830ddf65f4.zip |
gpgconf does now work for Wince.
Diffstat (limited to 'common/init.c')
-rw-r--r-- | common/init.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/common/init.c b/common/init.c index f0ab9c98c..de79a14c4 100644 --- a/common/init.c +++ b/common/init.c @@ -118,9 +118,18 @@ init_common_subsystems (int *argcp, char ***argvp) (void)argvp; #endif + /* Access the standard estreams as early as possible. If we don't + do this the original stdio streams may have been closed when + _es_get_std_stream is first use and in turn it would connect to + the bit bucket. */ + { + int i; + for (i=0; i < 3; i++) + (void)_es_get_std_stream (i); + } + /* --version et al shall use estream as well. */ argparse_register_outfnc (writestring_via_estream); - } @@ -191,6 +200,6 @@ parse_std_file_handles (int *argcp, char ***argvp) argv[i] = NULL; } - + } #endif /*HAVE_W32CE_SYSTEM*/ |