2009-08-05 Joel Sherrill <joel.sherrill@OARcorp.com>

* posix/src/mqueuecreatesupp.c: Now that the number of POSIX message
	queues and message queue descriptors are independently configured,
	this code is reachable.
This commit is contained in:
Joel Sherrill
2009-08-05 16:04:36 +00:00
parent b2bf0e4814
commit a07c8dedb0
2 changed files with 10 additions and 6 deletions

View File

@@ -1,3 +1,9 @@
2009-08-05 Joel Sherrill <joel.sherrill@OARcorp.com>
* posix/src/mqueuecreatesupp.c: Now that the number of POSIX message
queues and message queue descriptors are independently configured,
this code is reachable.
2009-08-05 Joel Sherrill <joel.sherrill@OARcorp.com>
* posix/include/rtems/posix/psignal.h, posix/src/mqueuecreatesupp.c,

View File

@@ -97,12 +97,10 @@ int _POSIX_Message_queue_Create_support(
}
the_mq = _POSIX_Message_queue_Allocate();
#if defined(RTEMS_DEBUG)
if ( !the_mq ) {
_Thread_Enable_dispatch();
rtems_set_errno_and_return_minus_one( ENFILE );
}
#endif
if ( !the_mq ) {
_Thread_Enable_dispatch();
rtems_set_errno_and_return_minus_one( ENFILE );
}
the_mq->process_shared = pshared;
the_mq->named = true;