forked from Imagelibrary/rtems
posix: Do not touch msg priority in case of error
This commit is contained in:
@@ -107,15 +107,15 @@ ssize_t _POSIX_Message_queue_Receive_support(
|
|||||||
&queue_context
|
&queue_context
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if ( status != STATUS_SUCCESSFUL ) {
|
||||||
|
rtems_set_errno_and_return_minus_one( _POSIX_Get_error( status ) );
|
||||||
|
}
|
||||||
|
|
||||||
if ( msg_prio != NULL ) {
|
if ( msg_prio != NULL ) {
|
||||||
*msg_prio = _POSIX_Message_queue_Priority_from_core(
|
*msg_prio = _POSIX_Message_queue_Priority_from_core(
|
||||||
executing->Wait.count
|
executing->Wait.count
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( status != STATUS_SUCCESSFUL ) {
|
|
||||||
rtems_set_errno_and_return_minus_one( _POSIX_Get_error( status ) );
|
|
||||||
}
|
|
||||||
|
|
||||||
return length_out;
|
return length_out;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user