summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/cond.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/posix/src/cond.c')
-rw-r--r--cpukit/posix/src/cond.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/cpukit/posix/src/cond.c b/cpukit/posix/src/cond.c
index 89002876b5..25c175948f 100644
--- a/cpukit/posix/src/cond.c
+++ b/cpukit/posix/src/cond.c
@@ -256,8 +256,10 @@ int pthread_cond_destroy(
return EINVAL;
case OBJECTS_LOCAL:
- if ( _Thread_queue_First( &the_cond->Wait_queue ) )
+ if ( _Thread_queue_First( &the_cond->Wait_queue ) ) {
+ _Thread_Enable_dispatch();
return EBUSY;
+ }
_Objects_Close(
&_POSIX_Condition_variables_Information,