summaryrefslogtreecommitdiff
path: root/mysys/safemalloc.c
diff options
context:
space:
mode:
authormonty@hundin.mysql.fi <>2002-06-28 15:06:04 +0300
committermonty@hundin.mysql.fi <>2002-06-28 15:06:04 +0300
commit33f84cf8fee58ee203fc3d2ee5e540ce7acedd9d (patch)
tree50f891adc2032af8c95592f9869e2a78f3cc778f /mysys/safemalloc.c
parentade20c5b19b3627a10ee4e29e23cc9e9ceef1f64 (diff)
downloadmariadb-git-33f84cf8fee58ee203fc3d2ee5e540ce7acedd9d.tar.gz
Fixed bug in REPAIR table.
Portability fix in safemalloc.c
Diffstat (limited to 'mysys/safemalloc.c')
-rw-r--r--mysys/safemalloc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/mysys/safemalloc.c b/mysys/safemalloc.c
index 768edc9f11e..07a19504604 100644
--- a/mysys/safemalloc.c
+++ b/mysys/safemalloc.c
@@ -379,8 +379,10 @@ static int check_ptr(const char *where, byte *ptr, const char *sFile,
static int legal_leak(struct remember* pPtr)
{
/* TODO: This code needs to be made more general */
- return (pthread_self() == pPtr->thread_id || main_th == pPtr->thread_id ||
- shutdown_th == pPtr->thread_id || signal_th == pPtr->thread_id);
+ return (pthread_equal(pthread_self(), pPtr->thread_id) ||
+ pthread_equal(main_th, pPtr->thread_id) ||
+ pthread_equal(shutdown_th,pPtr->thread_id) ||
+ pthread_equal(signal_th,pPtr->thread_id));
}
#endif /* THREAD */