From: Amos Jeffries Date: Thu, 30 Apr 2009 02:59:24 +0000 (+1200) Subject: Author: Peter Pramberger X-Git-Tag: SQUID_3_2_0_1~1027 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d07e01222edd601846f2fef4adc8d8904bf521ae;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 6a26ee0f19..6e3bbc8055 100644 --- a/src/debug.cc +++ b/src/debug.cc @@ -456,6 +456,8 @@ _db_init(const char *logfile, const char *options) #endif /* HAVE_SYSLOG */ + /* Pre-Init TZ env, see bug #2656 */ + tzset(); } void