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/score/src/coremsgsubmit.c | |
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/score/src/coremsgsubmit.c')
-rw-r--r-- | cpukit/score/src/coremsgsubmit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/score/src/coremsgsubmit.c b/cpukit/score/src/coremsgsubmit.c index 7e589e7754..91fb332e76 100644 --- a/cpukit/score/src/coremsgsubmit.c +++ b/cpukit/score/src/coremsgsubmit.c @@ -133,6 +133,7 @@ CORE_message_queue_Status _CORE_message_queue_Do_submit( * it as a variable. Doing this emphasizes how dangerous it * would be to use this variable prior to here. */ + executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; executing->Wait.return_argument_second.immutable_object = buffer; executing->Wait.option = (uint32_t) size; executing->Wait.count = submit_type; @@ -146,6 +147,6 @@ CORE_message_queue_Status _CORE_message_queue_Do_submit( CORE_MESSAGE_QUEUE_STATUS_TIMEOUT, lock_context ); - return CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT; + return executing->Wait.return_code; #endif } |