diff options
author | Werner Koch <[email protected]> | 2010-03-29 12:57:11 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2010-03-29 12:57:11 +0000 |
commit | 492f08ff68bd01a28c483af31635c3d9bea4ea5d (patch) | |
tree | 49d398997bb513077e44edfd1840183e73e4ed64 /common/init.c | |
parent | More changes for CE. gpgsm does now build and run a keylisting. (diff) | |
download | gnupg-492f08ff68bd01a28c483af31635c3d9bea4ea5d.tar.gz gnupg-492f08ff68bd01a28c483af31635c3d9bea4ea5d.zip |
Minor cleanups
Diffstat (limited to '')
-rw-r--r-- | common/init.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/common/init.c b/common/init.c index 9023c8db9..0904cf7b1 100644 --- a/common/init.c +++ b/common/init.c @@ -36,6 +36,13 @@ #ifdef HAVE_W32CE_SYSTEM #include <assuan.h> static void parse_std_file_handles (int *argcp, char ***argvp); +static void +sleep_on_exit (void) +{ + /* The sshd on CE swallows some of the command output. Sleeping a + while usually helps. */ + Sleep (400); +} #endif /*HAVE_W32CE_SYSTEM*/ @@ -77,6 +84,7 @@ init_common_subsystems (int *argcp, char ***argvp) /* Special hack for Windows CE: We extract some options from arg to setup the standard handles. */ #ifdef HAVE_W32CE_SYSTEM + atexit (sleep_on_exit); parse_std_file_handles (argcp, argvp); #else (void)argcp; |