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

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

rtipc/xddp: always handle close request in NRT mode

---

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

diff --git a/ksrc/drivers/ipc/xddp.c b/ksrc/drivers/ipc/xddp.c
index 39e1fa4..e201292 100644
--- a/ksrc/drivers/ipc/xddp.c
+++ b/ksrc/drivers/ipc/xddp.c
@@ -264,6 +264,9 @@ static int xddp_close(struct rtipc_private *priv,
        struct xddp_socket *sk = priv->state;
        int bound;
 
+       if (rtdm_in_rt_context())
+               return -ENOSYS; /* Downgrade to NRT */
+
        RTDM_EXECUTE_ATOMICALLY(
                bound = test_bit(_XDDP_BOUND, &sk->status);
                if (bound)


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

Reply via email to