From: wessels <> Date: Fri, 25 Oct 1996 02:58:51 +0000 (+0000) Subject: prototypes for Solaris X-Git-Tag: SQUID_3_0_PRE1~5601 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f8cde24f724271e6ffd12c2e4af499b0f2f4b34e;p=thirdparty%2Fsquid.git prototypes for Solaris close server ports in death() because coredumps can take a long time --- diff --git a/src/tools.cc b/src/tools.cc index 09ffe17c73..9fe13699a4 100644 --- a/src/tools.cc +++ b/src/tools.cc @@ -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) {