From 4b623d655bb4f4853a6ce385ae17e505dddbe7ce Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 24 May 2016 07:40:18 +0200 Subject: score: Fix blocking _CORE_message_queue_Submit() Close #2718. --- cpukit/score/src/coremsgsubmit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cpukit/score/src/coremsgsubmit.c') 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 } -- cgit v1.2.3