Hello,
I found a problem in Squid 1.0.5 running under Solaris 2.4. In some
cases has problems communicating with the dnsserver processes because they
close the file descriptor that handles the communication. Below is a fix
for the problem.
Javier Achirica
University of Valladolid
Spain
diff -c src.orig/dnsserver.c src/dnsserver.c
*** src.orig/dnsserver.c Mon Jul 8 20:30:53 1996
--- src/dnsserver.c Sat Aug 3 19:29:06 1996
***************
*** 227,233 ****
/* point stdout to fd */
dup2(fd, 1);
dup2(fd, 0);
! close(fd);
}
while (1) {
memset(request, '\0', 256);
--- 227,234 ----
/* point stdout to fd */
dup2(fd, 1);
dup2(fd, 0);
! if (fd > 1)
! close(fd);
}
while (1) {
memset(request, '\0', 256);
Received on Sat Aug 03 1996 - 14:58:49 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:32:45 MST