mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
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:
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user