mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
safemalloc cleanup. Maybe it will now compile on FreeBSD. I still not have
access to a FreeBSD box, though. mysys/my_static.h: cleanup mysys/safemalloc.c: cleanup sql/mysqld.cc: initialize some safemalloc variables in main()
This commit is contained in:
@ -1720,6 +1720,12 @@ int main(int argc, char **argv)
|
||||
my_umask=0660; // Default umask for new files
|
||||
my_umask_dir=0700; // Default umask for new directories
|
||||
MAIN_THD;
|
||||
/* initialize signal_th and shutdown_th to main_th for default value
|
||||
as we need to initialize them to something safe. They are used
|
||||
when compiled with safemalloc
|
||||
*/
|
||||
SIGNAL_THD;
|
||||
SHUTDOWN_THD;
|
||||
MY_INIT(argv[0]); // init my_sys library & pthreads
|
||||
tzset(); // Set tzname
|
||||
|
||||
|
Reference in New Issue
Block a user