Hi, this patch makes htdbm keep the screen open when finished so that the user can read the results.
--- htdbm.c.orig Tue Feb 10 00:16:16 2004
+++ htdbm.c Sat Mar 13 16:31:04 2004
@@ -105,9 +105,16 @@
#define HTDBM_NOFILE 4
#define HTDBM_STDIN 5
+static void terminate(void)
+{
+ apr_terminate();
+#ifdef NETWARE
+ pressanykey();
+#endif
+}
+
static void htdbm_terminate(htdbm_t *htdbm)
{
-
if (htdbm->dbm)
apr_dbm_close(htdbm->dbm);
htdbm->dbm = NULL;
@@ -387,7 +394,7 @@
int args_left = 2;
apr_app_initialize(&argc, &argv, NULL);
- atexit(apr_terminate);
+ atexit(terminate);
if ((rv = htdbm_init(&pool, &h)) != APR_SUCCESS) {
fprintf(stderr, "Unable to initialize htdbm terminating!\n");
@@ -569,7 +576,6 @@
}
}
htdbm_terminate(h);
- apr_terminate();
return 0; /* Suppress compiler warning. */
}
Guenter.
htdbm.c.diff
Description: Binary data
