On Wed, 2007-02-07 at 11:36 +0100, Markus Osterried wrote:
> Hello,
> 
> in pSOS skin function ev_receive() in file event.c I've found a bug.
> When  ev_receive() is called with EV_WAIT and an event is received, the
> task is unblocked and everything is okay, then in this case the copy of the
> actual received events into *events_r is missing.

Confirmed and fixed, thanks.

--- ksrc/skins/psos+/event.c    (revision 2108)
+++ ksrc/skins/psos+/event.c    (working copy)
@@ -79,9 +79,10 @@
 
        if (xnthread_test_info(&task->threadbase, XNBREAK))
                err = -EINTR;
-       else if (xnthread_test_info(&task->threadbase, XNTIMEO)) {
+       else {
                *events_r = task->waitargs.evgroup.events;
-               err = ERR_TIMEOUT;
+               if (xnthread_test_info(&task->threadbase, XNTIMEO))
+                       err = ERR_TIMEOUT;
        }
 
       unlock_and_exit:

-- 
Philippe.



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

Reply via email to