/*
- * $Id: tools.cc,v 1.277 2007/07/06 22:23:51 wessels Exp $
+ * $Id: tools.cc,v 1.278 2007/08/24 18:05:28 hno Exp $
*
* DEBUG: section 21 Misc Functions
* AUTHOR: Harvest Derived
if (Config.adminEmail)
mail_warranty();
- else
- puts(dead_msg());
+ puts(dead_msg());
}
+ if (shutting_down)
+ exit(1);
+
abort();
}
fatal_common(message);
- if (shutting_down)
- exit(1);
- else
- abort();
+ exit(1);
}
/* printf-style interface for fatal */
if (message)
fatal_common(message);
+ /*
+ * Call leave_suid() here to make sure that swap.state files
+ * are written as the effective user, rather than root. Squid
+ * may take on root privs during reconfigure. If squid.conf
+ * contains a "Bungled" line, fatal() will be called when the
+ * process still has root privs.
+ */
+ leave_suid();
+
if (opt_catch_signals)
storeDirWriteCleanLogs(0);