diff options
author | unknown <heikki@hundin.mysql.fi> | 2002-08-13 23:33:51 +0300 |
---|---|---|
committer | unknown <heikki@hundin.mysql.fi> | 2002-08-13 23:33:51 +0300 |
commit | 83417dd93f35f2f53f6c18f7fcce844f016b6d16 (patch) | |
tree | a5ffa70f7ded8bc931995f18870b6f3950133daf /mysys/my_pthread.c | |
parent | 9d0e328f7ac033bd37899ad667c2b69eed3793fe (diff) | |
download | mariadb-git-83417dd93f35f2f53f6c18f7fcce844f016b6d16.tar.gz |
my_pthread.c:
Fix an infinite recursion in my_pthread_mutex_trylock in HP-UX-10.20; the same bug is in the 4.0 tree
mysys/my_pthread.c:
Fix an infinite recursion in my_pthread_mutex_trylock in HP-UX-10.20; the same bug is in the 4.0 tree
Diffstat (limited to 'mysys/my_pthread.c')
-rw-r--r-- | mysys/my_pthread.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mysys/my_pthread.c b/mysys/my_pthread.c index e4e0eff95e6..4acc9ea7df8 100644 --- a/mysys/my_pthread.c +++ b/mysys/my_pthread.c @@ -435,7 +435,9 @@ int my_pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_trylock returns 1 on success, not 0 like pthread_mutex_lock */ - +/* We defined pthread_mutex_trylock as a macro in my_pthread.h, we have + to undef it here to prevent infinite recursion! */ +#undef pthread_mutex_trylock int my_pthread_mutex_trylock(pthread_mutex_t *mutex) { int error=pthread_mutex_trylock(mutex); |