Module: xenomai-rpm
Branch: for-upstream
Commit: b95f09bd0f00515482846efc8062aa6418e4e63b
URL:    
http://git.xenomai.org/?p=xenomai-rpm.git;a=commit;h=b95f09bd0f00515482846efc8062aa6418e4e63b

Author: Philippe Gerum <r...@xenomai.org>
Date:   Wed Mar 24 11:54:15 2010 +0100

nucleus: reset deferred cancellation bit properly

---

 ksrc/nucleus/thread.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ksrc/nucleus/thread.c b/ksrc/nucleus/thread.c
index 77fa442..73163f2 100644
--- a/ksrc/nucleus/thread.c
+++ b/ksrc/nucleus/thread.c
@@ -337,7 +337,7 @@ void xnthread_finish_wait(struct xnthread_wait_context *wc,
 
        curr->wcontext = NULL;
        if ((wc->oldstate & XNDEFCAN) == 0)
-               xnthread_clear_state(curr, wc->oldstate);
+               xnthread_clear_state(curr, XNDEFCAN);
 
        if (xnthread_test_state(curr, XNCANPND)) {
                if (cleanup)


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to