From 62994314aa786311066402c9c332108448305d66 Mon Sep 17 00:00:00 2001 From: Christian Mehlis Date: Thu, 1 Aug 2013 22:03:55 +0200 Subject: [PATCH] in msg_send_receive: return result from msg_send --- core/msg.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/msg.c b/core/msg.c index f9042e1681..13f30fd238 100644 --- a/core/msg.c +++ b/core/msg.c @@ -142,11 +142,10 @@ int msg_send_receive(msg_t *m, msg_t *reply, unsigned int target_pid) tcb_t *me = (tcb_t*) sched_threads[thread_pid]; sched_set_status(me, STATUS_REPLY_BLOCKED); me->wait_data = (void*) reply; - msg_send(m, target_pid, true); /* msg_send blocks until reply received */ - return 1; + return msg_send(m, target_pid, true); } int msg_reply(msg_t *m, msg_t *reply)