summaryrefslogtreecommitdiff
path: root/mysys/thr_alarm.c
diff options
context:
space:
mode:
authorunknown <jani@ua141d10.elisa.omakaista.fi>2007-03-29 19:31:42 +0300
committerunknown <jani@ua141d10.elisa.omakaista.fi>2007-03-29 19:31:42 +0300
commit0fdd64ba6391e556c3438733cb4f479f2c3395cf (patch)
tree7d2400345350908d7d88b9a8df4cff268cc257db /mysys/thr_alarm.c
parent70e4ba1f7c5ed0032557ce32fefa332ec5da709b (diff)
downloadmariadb-git-0fdd64ba6391e556c3438733cb4f479f2c3395cf.tar.gz
Merged from 5.0
Diffstat (limited to 'mysys/thr_alarm.c')
-rw-r--r--mysys/thr_alarm.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mysys/thr_alarm.c b/mysys/thr_alarm.c
index 57670c9ac14..471ec0ab10d 100644
--- a/mysys/thr_alarm.c
+++ b/mysys/thr_alarm.c
@@ -76,7 +76,10 @@ 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);
- thr_client_alarm= thd_lib_detected == THD_LIB_LT ? SIGALRM : SIGUSR1;
+ 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