summaryrefslogtreecommitdiffstats
path: root/common/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/init.c')
-rw-r--r--common/init.c8
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;