Module: xenomai-jki
Branch: for-forge
Commit: 054e747e37f5a59514686a54bfb1019d6bbb7624
URL:    
http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=054e747e37f5a59514686a54bfb1019d6bbb7624

Author: Jan Kiszka <jan.kis...@siemens.com>
Date:   Mon Sep 23 13:36:36 2013 +0200

cobalt/posix/signal: Properly check for non-blocking signal_wait

Move the wait label so that we always check for XN_NONBLOCK before
considering to wait on a signal arrival.

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

---

 kernel/cobalt/posix/signal.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kernel/cobalt/posix/signal.c b/kernel/cobalt/posix/signal.c
index 882042d..31c6a5b 100644
--- a/kernel/cobalt/posix/signal.c
+++ b/kernel/cobalt/posix/signal.c
@@ -245,11 +245,11 @@ check:
                goto done;
        }
 
+wait:
        if (timeout == XN_NONBLOCK) {
                ret = -EAGAIN;
                goto fail;
        }
-wait:
        swc.set = set;
        swc.si = &si;
        xnthread_prepare_wait(&swc.wc);


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

Reply via email to