]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
prototypes for Solaris
authorwessels <>
Fri, 25 Oct 1996 02:58:51 +0000 (02:58 +0000)
committerwessels <>
Fri, 25 Oct 1996 02:58:51 +0000 (02:58 +0000)
close server ports in death() because coredumps can take a long time

src/tools.cc

index 09ffe17c73e820d57f4e3f7273c3116d011ae661..9fe13699a442efb12c6b2dbb1d4d0b87eca676da 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: tools.cc,v 1.77 1996/10/24 06:11:56 wessels Exp $
+ * $Id: tools.cc,v 1.78 1996/10/24 20:58:51 wessels Exp $
  *
  * DEBUG: section 21    Misc Functions
  * AUTHOR: Harvest Derived
@@ -123,6 +123,12 @@ Thanks!\n"
 static void fatal_common _PARAMS((char *));
 static void mail_warranty _PARAMS((void));
 
+#ifdef _SQUID_SOLARIS_
+int getrusage _PARAMS((int, struct rusage *));
+int getpagesize _PARAMS((void));
+int gethostname _PARAMS((char *, int));
+#endif
+
 static char *
 dead_msg(void)
 {
@@ -239,6 +245,11 @@ death(int sig)
     signal(SIGBUS, SIG_DFL);
     signal(sig, SIG_DFL);
 #endif
+    /* Release the main ports as early as possible */
+    if (theHttpConnection >= 0)
+       (void) close(theHttpConnection);
+    if (theInIcpConnection >= 0)
+       (void) close(theInIcpConnection);
     storeWriteCleanLog();
     PrintRusage(NULL, debug_log);
     if (squid_curtime - SQUID_RELEASE_TIME < 864000) {