diff options
| author | Brian Feldman <green@FreeBSD.org> | 2004-10-31 05:03:50 +0000 |
|---|---|---|
| committer | Brian Feldman <green@FreeBSD.org> | 2004-10-31 05:03:50 +0000 |
| commit | 64926afd5038cae955429ac11bbfca9b3970c83b (patch) | |
| tree | 17aae58e9fcd3d6837bc175b203a52bb91fca30a /lib/libpthread/thread/thr_mutex.c | |
| parent | d88642fe52f77bd1245bf102075c40d924ef418c (diff) | |
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_mutex.c')
| -rw-r--r-- | lib/libpthread/thread/thr_mutex.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/libpthread/thread/thr_mutex.c b/lib/libpthread/thread/thr_mutex.c index 1232f33a181d..047dca59186c 100644 --- a/lib/libpthread/thread/thr_mutex.c +++ b/lib/libpthread/thread/thr_mutex.c @@ -911,14 +911,7 @@ mutex_self_trylock(struct pthread *curthread, pthread_mutex_t m) /* case PTHREAD_MUTEX_DEFAULT: */ case PTHREAD_MUTEX_ERRORCHECK: case PTHREAD_MUTEX_NORMAL: - /* - * POSIX specifies that mutexes should return EDEADLK if a - * recursive lock is detected. - */ - if (m->m_owner == curthread) - ret = EDEADLK; - else - ret = EBUSY; + ret = EBUSY; break; case PTHREAD_MUTEX_RECURSIVE: |
