[ofa-general] [PATCH] opensm: sweep on SIGCONT

Sasha Khapyorsky sashak at voltaire.com
Sat Oct 25 14:04:04 PDT 2008


When OpenSM is suspended by SIGSTOP it can miss subnet changes. Example
of known scenario is when another Stanby SM becomes master due to
unresponsive suspended master SM, when suspended SM continues to run
(after SIGCONT) we have two master SMs in a subnet.

To fix this we will schedule heavy sweep when SIGCONT is received.

Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---
 opensm/opensm/main.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/opensm/opensm/main.c b/opensm/opensm/main.c
index fe4262b..53648d6 100644
--- a/opensm/opensm/main.c
+++ b/opensm/opensm/main.c
@@ -111,6 +111,7 @@ static void setup_signals()
 	sigaction(SIGTERM, &act, NULL);
 	act.sa_handler = mark_hup_flag;
 	sigaction(SIGHUP, &act, NULL);
+	sigaction(SIGCONT, &act, NULL);
 #ifndef HAVE_OLD_LINUX_THREADS
 	act.sa_handler = mark_usr1_flag;
 	sigaction(SIGUSR1, &act, NULL);
-- 
1.6.0.3.517.g759a




More information about the general mailing list