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
e2dd5743
Commit
e2dd5743
authored
Mar 23, 2007
by
serg@sergbook.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-4.1
into sergbook.mysql.com:/usr/home/serg/Abk/mysql-4.1
parents
972df14c
2220fe27
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
mysys/thr_alarm.c
mysys/thr_alarm.c
+0
-4
sql/mysqld.cc
sql/mysqld.cc
+11
-7
No files found.
mysys/thr_alarm.c
View file @
e2dd5743
...
...
@@ -78,10 +78,6 @@ void init_thr_alarm(uint max_alarms)
sigfillset
(
&
full_signal_set
);
/* Neaded to block signals */
pthread_mutex_init
(
&
LOCK_alarm
,
MY_MUTEX_INIT_FAST
);
pthread_cond_init
(
&
COND_alarm
,
NULL
);
if
(
thd_lib_detected
==
THD_LIB_LT
)
thr_client_alarm
=
SIGALRM
;
else
thr_client_alarm
=
SIGUSR1
;
#ifndef USE_ALARM_THREAD
if
(
thd_lib_detected
!=
THD_LIB_LT
)
#endif
...
...
sql/mysqld.cc
View file @
e2dd5743
...
...
@@ -2046,6 +2046,17 @@ static void init_signals(void)
struct
sigaction
sa
;
DBUG_ENTER
(
"init_signals"
);
if
(
thd_lib_detected
==
THD_LIB_LT
)
{
thr_client_alarm
=
SIGALRM
;
thr_kill_signal
=
SIGINT
;
}
else
{
thr_client_alarm
=
SIGUSR1
;
thr_kill_signal
=
SIGUSR2
;
}
if
(
test_flags
&
TEST_SIGINT
)
{
my_sigset
(
thr_kill_signal
,
end_thread_signal
);
...
...
@@ -3140,13 +3151,6 @@ int main(int argc, char **argv)
MY_INIT
(
argv
[
0
]);
// init my_sys library & pthreads
/* Set signal used to kill MySQL */
#if defined(SIGUSR2)
thr_kill_signal
=
thd_lib_detected
==
THD_LIB_LT
?
SIGINT
:
SIGUSR2
;
#else
thr_kill_signal
=
SIGINT
;
#endif
#ifdef _CUSTOMSTARTUPCONFIG_
if
(
_cust_check_startup
())
{
...
...
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