/*
- * $Id: cache_cf.cc,v 1.201 1997/07/14 04:27:37 wessels Exp $
+ * $Id: cache_cf.cc,v 1.202 1997/07/14 05:57:51 wessels Exp $
*
* DEBUG: section 3 Configuration File Parsing
* AUTHOR: Harvest Derived
tmp->read_only = readonly;
tmp->map = file_map_create(MAX_FILES_PER_DIR);
tmp->swaplog_fd = -1;
+ swap->n_configured++;
}
static void
NAME: redirect_program
TYPE: pathname_stat
LOC: Config.Program.redirect
-DEFAULT: /bin/false
+DEFAULT: none
DOC_START
Specify the location of the executable for the URL redirector.
Currently, you must provide your own redirector program.
/*
- * $Id: comm.cc,v 1.173 1997/07/14 03:33:35 wessels Exp $
+ * $Id: comm.cc,v 1.174 1997/07/14 05:57:53 wessels Exp $
*
* DEBUG: section 5 Socket Functions
* AUTHOR: Harvest Derived
if (!fde->open)
return;
assert(fde->type != FD_FILE);
- fde->open = 0;
+ memset(fde, '\0', sizeof(fde));
CommWriteStateCallbackAndFree(fd, COMM_ERROR);
commCallCloseHandlers(fd);
fd_close(fd); /* update fdstat */
aioCheckCallbacks();
#endif
for (;;) {
- poll_time = sec > 0 ? 1000 : 0;
num = poll(pfds, nfds, poll_time);
select_loops++;
if (num >= 0)
fde *fde;
assert(fd >= 0);
fde = &fd_table[fd];
- debug(5, 5) ("commSetSelect: FD %d, handler=%p, data=%p\n", fd, handler, client_data);
+ debug(5, 5) ("commSetSelect: FD %d, type=%d, handler=%p, data=%p\n", fd, type, handler, client_data);
if (type & COMM_SELECT_READ) {
fde->read_handler = handler;
fde->read_data = client_data;
/*
- * $Id: debug.cc,v 1.46 1997/07/14 03:33:36 wessels Exp $
+ * $Id: debug.cc,v 1.47 1997/07/14 05:57:54 wessels Exp $
*
* DEBUG: section 0 Debug Routines
* AUTHOR: Harvest Derived
static char *debug_log_file = NULL;
static char *accessLogTime _PARAMS((time_t));
-extern int opt_debug_stderr;
#ifdef __STDC__
void
/*
- * $Id: peer_select.cc,v 1.17 1997/07/07 05:29:51 wessels Exp $
+ * $Id: peer_select.cc,v 1.18 1997/07/14 05:57:55 wessels Exp $
*
* DEBUG: section 44 Peer Selection Algorithm
* AUTHOR: Duane Wessels
ps_state *psstate = data;
psstate->acl_checklist = NULL;
debug(44, 3) ("peerCheckAlwaysDirectDone: %d\n", answer);
- psstate->always_direct = answer ? 1 : -1;
+ psstate->always_direct = answer ? -1 : 1;
peerSelectFoo(psstate);
}
/*
- * $Id: tools.cc,v 1.112 1997/07/14 03:33:41 wessels Exp $
+ * $Id: tools.cc,v 1.113 1997/07/14 05:57:55 wessels Exp $
*
* DEBUG: section 21 Misc Functions
* AUTHOR: Harvest Derived
syslog(LOG_ALERT, "%s", message);
#endif
fprintf(debug_log, "FATAL: %s\n", message);
+ if (opt_debug_stderr)
+ fprintf(stderr, "FATAL: %s\n", message);
fprintf(debug_log, "Squid Cache (Version %s): Terminated abnormally.\n",
version_string);
fflush(debug_log);