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

Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org>
Date:   Sun Jan  2 00:18:41 2011 +0100

posix: relock nklock in shadow signal handler

---

 ksrc/skins/posix/signal.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/ksrc/skins/posix/signal.c b/ksrc/skins/posix/signal.c
index 59acf1e..af27a71 100644
--- a/ksrc/skins/posix/signal.c
+++ b/ksrc/skins/posix/signal.c
@@ -1091,9 +1091,11 @@ static void pse51_dispatch_signals(xnsigmask_t sigs)
 #ifdef CONFIG_XENO_OPT_PERVASIVE
 static void pse51_dispatch_shadow_signals(xnsigmask_t sigs)
 {
+       spl_t dummy;
        /* Migrate to secondary mode in order to get the signals delivered by
           Linux. */
        xnshadow_relax(1, SIGDEBUG_MIGRATE_SIGNAL);
+       xnlock_get_irqsave(&nklock, dummy);
 }
 
 void pse51_signal_handle_request(pthread_t thread)


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

Reply via email to