Hi Zoran,
Reviewed and tested the patch.
Ack from me.
BR,
Hung Nguyen - DEK Technologies
--------------------------------------------------------------------------------
From: Zoran Milinkovic zoran.milinko...@ericsson.com
Sent: Monday, August 07, 2017 10:03PM
To: Mahesh Valla
mahesh.va...@oracle.com
Cc: Opensaf-devel
opensaf-devel@lists.sourceforge.net
Subject: [devel] [PATCH 1/1] imm: include CLM in poll before CLM handle is
initialized [#2544]
CLM selection object is initially set to -1. Included CLM selection
object in poll will be ignored until CLM selection object is created
and set to fds[FD_CLM].
---
src/imm/immnd/immnd_main.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/imm/immnd/immnd_main.c b/src/imm/immnd/immnd_main.c
index bca8f80..67759ff 100644
--- a/src/imm/immnd/immnd_main.c
+++ b/src/imm/immnd/immnd_main.c
@@ -303,8 +303,7 @@ int main(int argc, char *argv[])
int maxEvt = 100;
struct timespec start_time;
struct pollfd fds[5];
- int term_fd, nfds = 4;
- ;
+ int term_fd, nfds = 5;
daemonize(argc, argv);
@@ -428,7 +427,6 @@ int main(int argc, char *argv[])
ncs_sel_obj_rmv_ind(&immnd_cb->clm_init_sel_obj,
true, true);
immnd_init_with_clm();
- nfds = 5;
}
if (fds[FD_CLM].revents & POLLIN) {
------------------------------------------------------------------------------
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
Opensaf-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-devel