]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Peter Pramberger <peter@pramberger.at>
authorAmos Jeffries <squid3@treenet.co.nz>
Thu, 30 Apr 2009 02:59:24 +0000 (14:59 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 30 Apr 2009 02:59:24 +0000 (14:59 +1200)
Bug 2656: Pinger dies with general protection fault

tzset() explicitly performs actions previously done implicitly
by localtime() in most case. It appears that some VM do not have
the implicit setting so we need this.

src/debug.cc

index 6a26ee0f1962e0f9bdd06ce4ac481fb6ef378d2f..6e3bbc8055dc7c72b3c15b3a2ba606b87fc00f34 100644 (file)
@@ -456,6 +456,8 @@ _db_init(const char *logfile, const char *options)
 
 #endif /* HAVE_SYSLOG */
 
+    /* Pre-Init TZ env, see bug #2656 */
+    tzset();
 }
 
 void