diff options
author | unknown <istruewing@chilla.local> | 2007-02-01 08:09:36 +0100 |
---|---|---|
committer | unknown <istruewing@chilla.local> | 2007-02-01 08:09:36 +0100 |
commit | 62fdcb54a7e03282b19b8661e0f78e766e3b2a36 (patch) | |
tree | 048257cd44bd6d69572262aba31071a54e7992f1 /mysys/my_pthread.c | |
parent | a94b1b50772271e1e4e72ddb237eff458380c0fa (diff) | |
parent | 7be3cad45d0dccb3538fe797c9ac81358f92f691 (diff) | |
download | mariadb-git-62fdcb54a7e03282b19b8661e0f78e766e3b2a36.tar.gz |
Merge chilla.local:/home/mydev/mysql-4.0-axmrg
into chilla.local:/home/mydev/mysql-4.1-axmrg
include/my_global.h:
Auto merged
include/my_pthread.h:
Auto merged
include/thr_alarm.h:
Auto merged
mysys/default.c:
Auto merged
mysys/my_pthread.c:
Auto merged
mysys/thr_alarm.c:
Auto merged
mysys/my_thr_init.c:
Manual merged
sql/mysqld.cc:
Manual merged
Diffstat (limited to 'mysys/my_pthread.c')
-rw-r--r-- | mysys/my_pthread.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mysys/my_pthread.c b/mysys/my_pthread.c index 49a1ea79f65..09685ba3e12 100644 --- a/mysys/my_pthread.c +++ b/mysys/my_pthread.c @@ -31,6 +31,7 @@ #endif uint thd_lib_detected; +uint thr_client_alarm; #ifndef my_pthread_setprio void my_pthread_setprio(pthread_t thread_id,int prior) @@ -338,7 +339,9 @@ void *sigwait_thread(void *set_arg) sigaction(i, &sact, (struct sigaction*) 0); } } - sigaddset(set, thd_lib_detected == THD_LIB_LT ? SIGALRM : SIGUSR1); + /* Ensure that init_thr_alarm() is called */ + DBUG_ASSERT(thr_client_alarm); + sigaddset(set, thr_client_alarm); pthread_sigmask(SIG_UNBLOCK,(sigset_t*) set,(sigset_t*) 0); alarm_thread=pthread_self(); /* For thr_alarm */ |