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

Author: Philippe Gerum <r...@xenomai.org>
Date:   Thu Jun  1 09:43:53 2017 +0200

cobalt/syscalls: reject binding attempt to disabled core with EAGAIN

---

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

diff --git a/kernel/cobalt/posix/syscall.c b/kernel/cobalt/posix/syscall.c
index 25d21ea..0f905bf 100644
--- a/kernel/cobalt/posix/syscall.c
+++ b/kernel/cobalt/posix/syscall.c
@@ -314,7 +314,7 @@ static COBALT_SYSCALL(bind, lostage,
        f = &breq.feat_ret;
        featreq = breq.feat_req;
        if (!realtime_core_running() && (featreq & __xn_feat_control) == 0)
-               return -EPERM;
+               return -EAGAIN;
 
        /*
         * Calculate the missing feature set:


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

Reply via email to