From 10436bf902f289a8c4e3014d110ad72165c2227f Mon Sep 17 00:00:00 2001 From: "miguel@hegel.br" <> Date: Wed, 16 Oct 2002 21:22:56 -0200 Subject: [PATCH] Fix the 100% CPU usage with TZ variable --- mysys/my_init.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mysys/my_init.c b/mysys/my_init.c index f47286159f7..9dd2540ac6c 100644 --- a/mysys/my_init.c +++ b/mysys/my_init.c @@ -218,6 +218,10 @@ static void my_win_init(void) setlocale(LC_CTYPE, ""); /* To get right sortorder */ + /* Clear the OS system variable TZ and avoid the 100% CPU usage */ + _putenv( "TZ=" ); + _tzset(); + /* apre la chiave HKEY_LOCAL_MACHINES\software\MySQL */ if (RegOpenKeyEx(HKEY_LOCAL_MACHINE,(LPCTSTR)targetKey,0, KEY_READ,&hSoftMysql) != ERROR_SUCCESS)