diff options
author | miguel@hegel.br <> | 2002-10-16 21:51:03 -0200 |
---|---|---|
committer | miguel@hegel.br <> | 2002-10-16 21:51:03 -0200 |
commit | 927472d025de078db64edcd114e753fa165e812c (patch) | |
tree | c02a595ff949f725ab6f96f5305d88a7e48dc746 /mysys/my_init.c | |
parent | 87351da2040a11613d9f7b9aef05cab945b5ee2f (diff) | |
download | mariadb-git-927472d025de078db64edcd114e753fa165e812c.tar.gz |
Added optional NT service and fix the TZ variable bug
Diffstat (limited to 'mysys/my_init.c')
-rw-r--r-- | mysys/my_init.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mysys/my_init.c b/mysys/my_init.c index 31e49731c94..6a0e2444a62 100644 --- a/mysys/my_init.c +++ b/mysys/my_init.c @@ -219,6 +219,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) |