From: Amos Jeffries Date: Sun, 3 May 2009 11:58:33 +0000 (+1200) Subject: Author: Peter Pramberger X-Git-Tag: SQUID_3_1_0_8~20 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bb53f83ba7947d9049dd8039109d935f6f80eb21;p=thirdparty%2Fsquid.git Author: Peter Pramberger 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. --- diff --git a/src/debug.cc b/src/debug.cc index 6ad820cfaa..fa471a400c 100644 --- a/src/debug.cc +++ b/src/debug.cc @@ -442,6 +442,8 @@ _db_init(const char *logfile, const char *options) #endif /* HAVE_SYSLOG */ + /* Pre-Init TZ env, see bug #2656 */ + tzset(); } void