Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
48337723
Commit
48337723
authored
Apr 05, 2002
by
sasha@mysql.sashanet.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
safemalloc cleanup. Maybe it will now compile on FreeBSD. I still not have
access to a FreeBSD box, though.
parent
48af52bf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
mysys/my_static.h
mysys/my_static.h
+2
-2
mysys/safemalloc.c
mysys/safemalloc.c
+1
-1
sql/mysqld.cc
sql/mysqld.cc
+6
-0
No files found.
mysys/my_static.h
View file @
48337723
...
@@ -61,10 +61,10 @@ extern uint my_once_extra;
...
@@ -61,10 +61,10 @@ extern uint my_once_extra;
#ifdef THREAD
#ifdef THREAD
/*
/*
These threads are ex
ce
pt from safemalloc leak scrutiny unless
These threads are ex
em
pt from safemalloc leak scrutiny unless
PEDANTIC_SAFEMALLOC is defined
PEDANTIC_SAFEMALLOC is defined
*/
*/
extern
pthread_t
signal_th
read
,
kill_thread
;
extern
pthread_t
signal_th
,
kill_th
,
main_th
;
#endif
#endif
#ifndef HAVE_TEMPNAM
#ifndef HAVE_TEMPNAM
...
...
mysys/safemalloc.c
View file @
48337723
...
@@ -73,7 +73,7 @@
...
@@ -73,7 +73,7 @@
#include "mysys_err.h"
#include "mysys_err.h"
ulonglong
safemalloc_mem_limit
=
~
(
ulonglong
)
0
;
ulonglong
safemalloc_mem_limit
=
~
(
ulonglong
)
0
;
pthread_t
shutdown_th
=
0
,
main_th
=
0
,
signal_th
=
0
;
pthread_t
shutdown_th
,
main_th
,
signal_th
;
#define pNext tInt._pNext
#define pNext tInt._pNext
#define pPrev tInt._pPrev
#define pPrev tInt._pPrev
...
...
sql/mysqld.cc
View file @
48337723
...
@@ -1720,6 +1720,12 @@ int main(int argc, char **argv)
...
@@ -1720,6 +1720,12 @@ int main(int argc, char **argv)
my_umask
=
0660
;
// Default umask for new files
my_umask
=
0660
;
// Default umask for new files
my_umask_dir
=
0700
;
// Default umask for new directories
my_umask_dir
=
0700
;
// Default umask for new directories
MAIN_THD
;
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
MY_INIT
(
argv
[
0
]);
// init my_sys library & pthreads
tzset
();
// Set tzname
tzset
();
// Set tzname
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment