]> git.pld-linux.org Git - packages/squid.git/blob - squid-2.5.STABLE2-shutdown.patch
- SEGV fix
[packages/squid.git] / squid-2.5.STABLE2-shutdown.patch
1 Index: squid/src/main.c
2 diff -c squid/src/main.c:1.345.2.8 squid/src/main.c:1.345.2.9
3 *** squid/src/main.c:1.345.2.8  Wed Jan 29 15:33:49 2003
4 --- squid/src/main.c    Wed Apr  9 06:07:49 2003
5 ***************
6 *** 726,738 ****
7             do_shutdown = 0;
8             shutting_down = 1;
9             serverConnectionsClose();
10 - #if USE_DNSSERVERS
11 -           dnsShutdown();
12 - #else
13 -           idnsShutdown();
14 - #endif
15 -           redirectShutdown();
16 -           externalAclShutdown();
17             eventAdd("SquidShutdown", SquidShutdown, NULL, (double) (wait + 1), 1);
18         }
19         eventRun();
20 --- 726,731 ----
21 ***************
22 *** 950,955 ****
23 --- 943,955 ----
24   SquidShutdown(void *unused)
25   {
26       debug(1, 1) ("Shutting down...\n");
27 + #if USE_DNSSERVERS
28 +     dnsShutdown();
29 + #else
30 +     idnsShutdown();
31 + #endif
32 +     redirectShutdown();
33 +     externalAclShutdown();
34       icpConnectionClose();
35   #if USE_HTCP
36       htcpSocketClose();
This page took 0.057459 seconds and 3 git commands to generate.