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 | |
| 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 'common')
| -rw-r--r-- | common/ChangeLog | 9 | ||||
| -rw-r--r-- | common/init.c | 8 |
2 files changed, 17 insertions, 0 deletions
diff --git a/common/ChangeLog b/common/ChangeLog index cf71cb28e..2e61181e9 100644 --- a/common/ChangeLog +++ b/common/ChangeLog @@ -1,3 +1,12 @@ +2010-03-29 Werner Koch <[email protected]> + + * init.c (sleep_on_exit): Change to 400ms. + +2010-03-25 Werner Koch <[email protected]> + + * init.c (sleep_on_exit) [W32CE]: New. + (init_common_subsystems): Call it. + 2010-03-24 Werner Koch <[email protected]> * stringhelp.c (change_slashes, compare_filenames): Replace 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; |
