Module: xenomai-3
Branch: next
Commit: 41b39d1406ba4b6b7578f7814cb0d0c317c935ad
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=41b39d1406ba4b6b7578f7814cb0d0c317c935ad

Author: Jan Kiszka <jan.kis...@siemens.com>
Date:   Fri Dec 12 18:19:56 2014 +0100

cobalt/thread: Fix signaling of SIGDEBUG_LOCK_BREAK

We have to kick the thread we sent SIGDEBUG_LOCK_BREAK to in order to
deliver this information over the right location.

Signed-off-by: Jan Kiszka <jan.kis...@siemens.com>

---

 kernel/cobalt/thread.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/cobalt/thread.c b/kernel/cobalt/thread.c
index e7726dd..a635611 100644
--- a/kernel/cobalt/thread.c
+++ b/kernel/cobalt/thread.c
@@ -987,7 +987,7 @@ out:
 lock_break:
        if (xnthread_test_state(thread, XNWARN) &&
            !xnthread_test_info(thread, XNLBALERT)) {
-               xnthread_set_info(thread, XNLBALERT);
+               xnthread_set_info(thread, XNLBALERT | XNKICKED);
                xnthread_signal(thread, SIGDEBUG, SIGDEBUG_LOCK_BREAK);
        }
 abort:


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to