]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Peter Pramberger <peter@pramberger.at>
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 3 May 2009 11:58:33 +0000 (23:58 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 3 May 2009 11:58:33 +0000 (23:58 +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 6ad820cfaaeee2177b9193e57adc821755202fde..fa471a400c62e63476530aca3d34d0dce718d5bc 100644 (file)
@@ -442,6 +442,8 @@ _db_init(const char *logfile, const char *options)
 
 #endif /* HAVE_SYSLOG */
 
+    /* Pre-Init TZ env, see bug #2656 */
+    tzset();
 }
 
 void