diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-05-24 07:40:18 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-05-24 15:37:10 +0200 |
commit | 4b623d655bb4f4853a6ce385ae17e505dddbe7ce (patch) | |
tree | 2c10939f3fe13e31f37c842e9f73eef7a384b293 /cpukit/posix/src | |
parent | psxtests/psxmsgq01: Enable test case (diff) | |
download | rtems-4b623d655bb4f4853a6ce385ae17e505dddbe7ce.tar.bz2 |
score: Fix blocking _CORE_message_queue_Submit()
Close #2718.
Diffstat (limited to 'cpukit/posix/src')
-rw-r--r-- | cpukit/posix/src/mqueuesendsupp.c | 11 | ||||
-rw-r--r-- | cpukit/posix/src/mqueuetranslatereturncode.c | 3 |
2 files changed, 1 insertions, 13 deletions
diff --git a/cpukit/posix/src/mqueuesendsupp.c b/cpukit/posix/src/mqueuesendsupp.c index 0d9974afe4..f13339ffa7 100644 --- a/cpukit/posix/src/mqueuesendsupp.c +++ b/cpukit/posix/src/mqueuesendsupp.c @@ -105,17 +105,6 @@ int _POSIX_Message_queue_Send_support( &lock_context ); - /* - * If we had to block, then this is where the task returns - * after it wakes up. The returned status is correct for - * non-blocking operations but if we blocked, then we need - * to look at the status in our TCB. - */ - - if ( msg_status == CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT ) { - msg_status = executing->Wait.return_code; - } - if ( msg_status != CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL ) { rtems_set_errno_and_return_minus_one( _POSIX_Message_queue_Translate_core_message_queue_return_code( diff --git a/cpukit/posix/src/mqueuetranslatereturncode.c b/cpukit/posix/src/mqueuetranslatereturncode.c index 30d1c57503..901d5aaa3a 100644 --- a/cpukit/posix/src/mqueuetranslatereturncode.c +++ b/cpukit/posix/src/mqueuetranslatereturncode.c @@ -46,8 +46,7 @@ static ENOMEM, /* CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED */ EAGAIN, /* CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT */ EBADF, /* CORE_MESSAGE_QUEUE_STATUS_WAS_DELETED */ - ETIMEDOUT, /* CORE_MESSAGE_QUEUE_STATUS_TIMEOUT */ - ENOSYS /* CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT */ + ETIMEDOUT /* CORE_MESSAGE_QUEUE_STATUS_TIMEOUT */ }; |