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

Author: Philippe Gerum <r...@xenomai.org>
Date:   Mon Jul 11 11:35:20 2016 +0200

cobalt/signal: fix error code in kill() routine

---

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

diff --git a/kernel/cobalt/posix/signal.c b/kernel/cobalt/posix/signal.c
index 4822fda..416d3e4 100644
--- a/kernel/cobalt/posix/signal.c
+++ b/kernel/cobalt/posix/signal.c
@@ -480,7 +480,7 @@ int __cobalt_kill(struct cobalt_thread *thread, int sig, 
int group) /* nklocked,
                                 XN_INFINITE, XN_RELATIVE, NULL);
                if (&thread->threadbase == xnthread_current() &&
                    xnthread_test_info(&thread->threadbase, XNBREAK))
-                       ret = EINTR;
+                       ret = -EINTR;
                break;
        case SIGRESM:
                xnthread_resume(&thread->threadbase, XNSUSP);


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

Reply via email to