summaryrefslogtreecommitdiff
path: root/mysys/my_pthread.c
diff options
context:
space:
mode:
authorunknown <istruewing@chilla.local>2007-02-01 08:09:36 +0100
committerunknown <istruewing@chilla.local>2007-02-01 08:09:36 +0100
commit62fdcb54a7e03282b19b8661e0f78e766e3b2a36 (patch)
tree048257cd44bd6d69572262aba31071a54e7992f1 /mysys/my_pthread.c
parenta94b1b50772271e1e4e72ddb237eff458380c0fa (diff)
parent7be3cad45d0dccb3538fe797c9ac81358f92f691 (diff)
downloadmariadb-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.c5
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 */