summaryrefslogtreecommitdiffstats
path: root/lib/libthr
diff options
context:
space:
mode:
authormtm <mtm@FreeBSD.org>2004-09-22 18:51:16 +0000
committermtm <mtm@FreeBSD.org>2004-09-22 18:51:16 +0000
commit18e7a485411b5d1bb85de664256afaba56a11996 (patch)
treeaf208283744f32cbb9e5a25a24ff6635e25dd767 /lib/libthr
parenteb3be2c541c402d7d430f9b1b93bf9ba9a119934 (diff)
downloadFreeBSD-src-18e7a485411b5d1bb85de664256afaba56a11996.zip
FreeBSD-src-18e7a485411b5d1bb85de664256afaba56a11996.tar.gz
Remove vestiges of libthr's signal mangling past. This fixes that last
known problem with mysql on libthr: not being able to kill mysqld.
Diffstat (limited to 'lib/libthr')
-rw-r--r--lib/libthr/thread/thr_mutex.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/lib/libthr/thread/thr_mutex.c b/lib/libthr/thread/thr_mutex.c
index ae6e406..ec28931 100644
--- a/lib/libthr/thread/thr_mutex.c
+++ b/lib/libthr/thread/thr_mutex.c
@@ -285,8 +285,6 @@ _pthread_mutex_trylock(pthread_mutex_t *mutex)
{
int ret = 0;
- _thread_sigblock();
-
/*
* If the mutex is statically initialized, perform the dynamic
* initialization marking the mutex private (delete safe):
@@ -295,9 +293,6 @@ _pthread_mutex_trylock(pthread_mutex_t *mutex)
(ret = mutex_init(mutex, 1)) == 0)
ret = mutex_lock_common(mutex, 1, NULL);
- if (ret != 0)
- _thread_sigunblock();
-
return (ret);
}
@@ -529,8 +524,6 @@ _pthread_mutex_lock(pthread_mutex_t *mutex)
if (_thread_initial == NULL)
_thread_init();
- _thread_sigblock();
-
/*
* If the mutex is statically initialized, perform the dynamic
* initialization marking it private (delete safe):
@@ -539,9 +532,6 @@ _pthread_mutex_lock(pthread_mutex_t *mutex)
((ret = mutex_init(mutex, 1)) == 0))
ret = mutex_lock_common(mutex, 0, NULL);
- if (ret != 0)
- _thread_sigunblock();
-
return (ret);
}
@@ -577,10 +567,7 @@ __pthread_mutex_unlock(pthread_mutex_t * mutex)
int
_pthread_mutex_unlock(pthread_mutex_t * mutex)
{
- int error;
- if ((error = mutex_unlock_common(mutex, /* add reference */ 0)) == 0)
- _thread_sigunblock();
- return (error);
+ return (mutex_unlock_common(mutex, /* add reference */ 0));
}
int
OpenPOWER on IntegriCloud