diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-08-05 15:39:59 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-08-05 15:39:59 +0000 |
commit | b2bf0e4814d27e65946a506efe4c46ba8336dbde (patch) | |
tree | b8beb402f6dcdfc501a912f5c9c3bbc084b529da /cpukit/posix/src/mqueuecreatesupp.c | |
parent | 2009-08-05 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-b2bf0e4814d27e65946a506efe4c46ba8336dbde.tar.bz2 |
2009-08-05 Joel Sherrill <joel.sherrill@OARcorp.com>
* posix/include/rtems/posix/psignal.h, posix/src/mqueuecreatesupp.c,
posix/src/psignalclearprocesssignals.c,
posix/src/psignalclearsignals.c: Minor rework to ease coverage
analysis.
Diffstat (limited to '')
-rw-r--r-- | cpukit/posix/src/mqueuecreatesupp.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/cpukit/posix/src/mqueuecreatesupp.c b/cpukit/posix/src/mqueuecreatesupp.c index 335d1fc74d..0bfa675f21 100644 --- a/cpukit/posix/src/mqueuecreatesupp.c +++ b/cpukit/posix/src/mqueuecreatesupp.c @@ -97,10 +97,12 @@ int _POSIX_Message_queue_Create_support( } the_mq = _POSIX_Message_queue_Allocate(); - if ( !the_mq ) { - _Thread_Enable_dispatch(); - rtems_set_errno_and_return_minus_one( ENFILE ); - } + #if defined(RTEMS_DEBUG) + if ( !the_mq ) { + _Thread_Enable_dispatch(); + rtems_set_errno_and_return_minus_one( ENFILE ); + } + #endif the_mq->process_shared = pshared; the_mq->named = true; |