MBC isn't working in PLM, so no info is being checkpointed to the standby plmd.

When the code to handle more than 2 SCs was put in to PLM, the MBC selection
object was gotten at a later time -- after the while loop containing the "poll"
system call. Thus, the mbc file descriptor was never being set in the poll call.

Move the setting of the mbc file descriptor to inside the while loop, so it gets
set.
---
 src/plm/plmd/plms_main.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/plm/plmd/plms_main.c b/src/plm/plmd/plms_main.c
index b512741..23b0194 100644
--- a/src/plm/plmd/plms_main.c
+++ b/src/plm/plmd/plms_main.c
@@ -482,12 +482,13 @@ int main(int argc, char *argv[])
        fds[FD_AMF].fd = plms_cb->nid_started ? plms_cb->usr1_sel_obj.rmv_obj
                                              : plms_cb->amf_sel_obj;
        fds[FD_AMF].events = POLLIN;
-       fds[FD_MBCSV].fd = plms_cb->mbcsv_sel_obj;
-       fds[FD_MBCSV].events = POLLIN;
        fds[FD_MBX].fd = mbx_fd.rmv_obj;
        fds[FD_MBX].events = POLLIN;
 
        while (1) {
+               fds[FD_MBCSV].fd = plms_cb->mbcsv_sel_obj;
+               fds[FD_MBCSV].events = POLLIN;
+
                if (plms_cb->oi_hdl != 0) {
                        fds[FD_IMM].fd = plms_cb->imm_sel_obj;
                        fds[FD_IMM].events = POLLIN;
-- 
2.9.5


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Opensaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-devel

Reply via email to