From d07e01222edd601846f2fef4adc8d8904bf521ae Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Thu, 30 Apr 2009 14:59:24 +1200 Subject: [PATCH] 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. --- src/debug.cc | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.47.3