rescan subnet configuration after SIGHUP
 call osm_subn_rescan_conf_files() after SIGHUP.
 this is important when priority is changed and SM is in standby.
 in that case it will not send capability mask trap and will not become master.

Signed-off-by: Eli Dorfman <[email protected]>
---
 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 f786192..0f7b822 100644
--- a/opensm/opensm/main.c
+++ b/opensm/opensm/main.c
@@ -507,6 +507,7 @@ int osm_manager_loop(osm_subn_opt_t * p_opt, osm_opensm_t * 
p_osm)
                        osm_hup_flag = 0;
                        /* a HUP signal should only start a new heavy sweep */
                        p_osm->subn.force_heavy_sweep = TRUE;
+                       osm_subn_rescan_conf_files(&p_osm->subn);
                        osm_opensm_sweep(p_osm);
                }
        }
-- 
1.5.5

_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to