$Log$
+ Revision 640.8 2005/02/16 17:37:16 ajc
+ * Be more aggressive about shutting down when told to. Getting the
+ databases closed is the highest priority.
+
Revision 640.7 2005/02/16 04:08:42 ajc
* newinstall.sh: put the checksum files server-side to avoid
unnecessary downloads
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
+
cdb_free_tsd();
if ((ret = dbenv->txn_checkpoint(dbenv, 0, 0, 0))) {
- lprintf(CTDL_EMERG, "cdb_*: txn_checkpoint: %s\n", db_strerror(ret));
- abort();
+ lprintf(CTDL_EMERG,
+ "cdb_*: txn_checkpoint: %s\n",
+ db_strerror(ret));
}
for (a = 0; a < MAXCDB; ++a) {
lprintf(CTDL_INFO, "cdb_*: Closing database %d\n", a);
ret = dbp[a]->close(dbp[a], 0);
if (ret) {
- lprintf(CTDL_EMERG, "cdb_*: db_close: %s\n", db_strerror(ret));
- abort();
+ lprintf(CTDL_EMERG,
+ "cdb_*: db_close: %s\n",
+ db_strerror(ret));
}
}
/* Close the handle. */
ret = dbenv->close(dbenv, 0);
if (ret) {
- lprintf(CTDL_EMERG, "cdb_*: DBENV->close: %s\n", db_strerror(ret));
- abort();
+ lprintf(CTDL_EMERG,
+ "cdb_*: DBENV->close: %s\n",
+ db_strerror(ret));
}
}
volatile int time_to_die = 0;
static RETSIGTYPE signal_cleanup(int signum) {
+ lprintf(CTDL_DEBUG, "Signal %d received.\n", signum);
time_to_die = 1;
+ master_cleanup(); /* will this work? */
}
int bytes_written = 0;
int retval;
int sock;
+#ifndef HAVE_TCP_BUFFERING
int old_buffer_len = 0;
+#endif
if (CC->redirect_fp != NULL) {
fwrite(buf, (size_t)nbytes, (size_t)1, CC->redirect_fp);