Sun Oct 24 22:01:04 CEST 1999 Modified Files in squid/src main.c unlinkd.c Merged squid-2.2.STABLE4.helper_rotate_log.patch Restart helper processes on logrotate to have cache.log reopened. ----------------------------------------------------------------- Index: squid/src/main.c diff -u squid/src/main.c:1.1.1.35.2.2 squid/src/main.c:1.1.1.35.2.3 --- squid/src/main.c:1.1.1.35.2.2 Sun Oct 24 21:57:16 1999 +++ squid/src/main.c Sun Oct 24 22:01:03 1999 @@ -350,12 +350,18 @@ mainRotate(void) { icmpClose(); + dnsShutdown(); + redirectShutdown(); + authenticateShutdown(); _db_rotate_log(); /* cache.log */ storeDirWriteCleanLogs(1); storeLogRotate(); /* store.log */ accessLogRotate(); /* access.log */ useragentRotateLog(); /* useragent.log */ icmpOpen(); + dnsInit(); + redirectInit(); + authenticateInit(); } static void Index: squid/src/unlinkd.c diff -u squid/src/unlinkd.c:1.1.1.17.2.1 squid/src/unlinkd.c:1.1.1.17.2.2 --- squid/src/unlinkd.c:1.1.1.17.2.1 Sun Oct 24 20:54:00 1999 +++ squid/src/unlinkd.c Sun Oct 24 22:01:03 1999 @@ -48,6 +48,8 @@ int x; setbuf(stdin, NULL); setbuf(stdout, NULL); + close(2); + open("/dev/null", O_RDWR); while (fgets(buf, UNLINK_BUF_LEN, stdin)) { if ((t = strchr(buf, '\n'))) *t = '\0';