Module: xenomai-head
Branch: master
Commit: 6ace951ae4030b9aca7e9edcf187291829225d92
URL:    
http://git.xenomai.org/?p=xenomai-head.git;a=commit;h=6ace951ae4030b9aca7e9edcf187291829225d92

Author: Philippe Gerum <r...@xenomai.org>
Date:   Tue Sep  8 17:04:08 2009 +0200

rtipc/iddp: handle close request in NRT mode when required

---

 ksrc/drivers/ipc/iddp.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/ksrc/drivers/ipc/iddp.c b/ksrc/drivers/ipc/iddp.c
index 4cf5840..1a024e3 100644
--- a/ksrc/drivers/ipc/iddp.c
+++ b/ksrc/drivers/ipc/iddp.c
@@ -215,6 +215,9 @@ static int iddp_close(struct rtipc_private *priv,
        struct iddp_message *mbuf;
        LIST_HEAD(head);
 
+       if (rtdm_in_rt_context() && sk->bufpool != &kheap)
+               return -ENOSYS; /* Downgrade to NRT */
+
        if (sk->name.sipc_port > -1) {
                portmap[sk->name.sipc_port] = NULL;
                xnmap_remove(portbits, sk->name.sipc_port);


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

Reply via email to