Hi Mahesh, I'll include check for POLLERR before pushing. /Thanks HansN
-----Original Message----- From: A V Mahesh [mailto:mahesh.va...@oracle.com] Sent: den 9 februari 2017 04:58 To: Hans Nordebäck <hans.nordeb...@ericsson.com> Cc: opensaf-devel@lists.sourceforge.net Subject: Re: [PATCH 1 of 1] mds: TCP Libraries cause high CPU load when opensaf service stops [#2290] Hi Hans N, ACK with following comment ( not tested) I think, need to check both (POLLNVAL | POLLERR) -AVM On 2/8/2017 6:04 PM, Hans Nordeback wrote: > src/mds/mds_dt_trans.c | 5 +++++ > 1 files changed, 5 insertions(+), 0 deletions(-) > > > diff --git a/src/mds/mds_dt_trans.c b/src/mds/mds_dt_trans.c > --- a/src/mds/mds_dt_trans.c > +++ b/src/mds/mds_dt_trans.c > @@ -799,6 +799,11 @@ uint32_t mdtm_process_recv_events_tcp(vo > mdtm_process_poll_recv_data_tcp(); > } > > + if (pfd[0].revents & POLLNVAL) { > + m_MDS_LOG_INFO("MDTM: DBSRsock has been > closed\n"); > + pfd[0].fd = -1; > + } > + > if (pfd[1].revents & POLLIN) { > m_MDS_LOG_INFO("MDTM: Processing Timer mailbox > events\n"); > ------------------------------------------------------------------------------ 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