-/* $Id: comm.cc,v 1.26 1996/04/16 20:29:26 wessels Exp $ */
+/* $Id: comm.cc,v 1.27 1996/04/17 15:07:26 wessels Exp $ */
/* DEBUG: Section 5 comm: socket level functions */
/* STATIC */
static int *fd_lifetime = NULL;
-static void checkTimeouts _PARAMS((void));
+static void checkTimeouts _PARAMS((void));
static void checkLifetimes _PARAMS((void));
static void Reserve_More_FDs _PARAMS((void));
static int commSetReuseAddr _PARAMS((int));
if (maxfd++ == 0)
return;
if (select(maxfd, &read_mask, &write_mask, NULL, &zero_tv) > 0) {
- for (i=0; i<N; i++) {
+ for (i = 0; i < N; i++) {
fd = fds[i];
if (FD_ISSET(fd, &read_mask)) {
tmp = fd_table[fd].read_handler;
-/* $Id: main.cc,v 1.40 1996/04/16 23:05:44 wessels Exp $ */
+/* $Id: main.cc,v 1.41 1996/04/17 15:07:31 wessels Exp $ */
/* DEBUG: Section 1 main: startup and main loop */
case COMM_SHUTDOWN:
/* delayed close so we can transmit while shutdown pending */
if (theUdpConnection > 0) {
- comm_close (theUdpConnection);
+ comm_close(theUdpConnection);
theUdpConnection = -1;
}
if (shutdown_pending) {
-/* $Id: tools.cc,v 1.37 1996/04/16 20:32:53 wessels Exp $ */
+/* $Id: tools.cc,v 1.38 1996/04/17 15:07:32 wessels Exp $ */
/*
* DEBUG: Section 21 tools
f = &fd_table[i];
if (f->read_handler || f->write_handler || f->except_handler)
if (fdstatGetType(i) == Socket)
- comm_set_fd_lifetime(i, 30);
+ comm_set_fd_lifetime(i, 30);
}
shutdown_pending = 1;
/* reinstall signal handler? */
f = &fd_table[i];
if (f->read_handler || f->write_handler || f->except_handler)
if (fdstatGetType(i) == Socket)
- comm_set_fd_lifetime(i, 30);
+ comm_set_fd_lifetime(i, 30);
}
#if defined(_SQUID_SYSV_SIGNALS_)
signal(sig, reconfigure);