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

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 94bc3e4..6fe16e4 100644
--- a/ksrc/skins/posix/signal.c
+++ b/ksrc/skins/posix/signal.c
@@ -1055,9 +1055,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