From: wessels <> Date: Thu, 24 Oct 1996 11:17:43 +0000 (+0000) Subject: undo opt_read_only stuff X-Git-Tag: SQUID_3_0_PRE1~5610 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c51da11eddd262b66057c9700b531045ec056317;p=thirdparty%2Fsquid.git undo opt_read_only stuff --- diff --git a/src/debug.cc b/src/debug.cc index e047ffe58b..0f50364c4f 100644 --- a/src/debug.cc +++ b/src/debug.cc @@ -1,5 +1,5 @@ /* - * $Id: debug.cc,v 1.32 1996/10/24 05:07:17 wessels Exp $ + * $Id: debug.cc,v 1.33 1996/10/24 05:17:43 wessels Exp $ * * DEBUG: section 0 Debug Routines * AUTHOR: Harvest Derived @@ -243,8 +243,6 @@ _db_init(char *logfile, char *options) debugArg(s); xfree(p); } - if (opt_read_only) - return; debugOpenLog(logfile); #if HAVE_SYSLOG && defined(LOG_LOCAL4) diff --git a/src/main.cc b/src/main.cc index 92e45d31c8..6382ca8fa8 100644 --- a/src/main.cc +++ b/src/main.cc @@ -1,5 +1,5 @@ /* - * $Id: main.cc,v 1.98 1996/10/24 05:07:22 wessels Exp $ + * $Id: main.cc,v 1.99 1996/10/24 05:17:45 wessels Exp $ * * DEBUG: section 1 Startup and Main Loop * AUTHOR: Harvest Derived @@ -122,7 +122,6 @@ static int opt_send_signal = -1; /* no signal to send */ int opt_udp_hit_obj = 1; int opt_mem_pools = 1; int opt_forwarded_for = 1; -int opt_read_only = 0; int vhost_mode = 0; volatile int unbuffered_logs = 1; /* debug and hierarchy unbuffered by default */ volatile int shutdown_pending = 0; /* set by SIGTERM handler (shut_down()) */ @@ -284,10 +283,6 @@ mainParseOptions(int argc, char *argv[]) } argc -= optind; argv += optind; - if (argc) { - opt_read_only = 1; - get_url = xstrdup(*argv); - } } static void @@ -331,7 +326,6 @@ serverConnectionsOpen(void) { struct in_addr addr; u_short port; - if (!opt_read_only) { enter_suid(); theHttpConnection = comm_open(SOCK_STREAM, 0, @@ -351,12 +345,9 @@ serverConnectionsOpen(void) NULL, 0); debug(1, 1, "Accepting HTTP connections on FD %d.\n", theHttpConnection); - } if (!httpd_accel_mode || Config.Accel.withProxy) { if ((port = Config.Port.icp) > (u_short) 0) { - if (opt_read_only) - Config.Port.icp = port = 0; enter_suid(); theInIcpConnection = comm_open(SOCK_DGRAM, 0,