Module: sems Branch: 1.4 Commit: 29f55f998c4a36ac608807d3f22fc286c491b04b URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=29f55f998c4a36ac608807d3f22fc286c491b04b
Author: Raphael Coeffic <[email protected]> Committer: Raphael Coeffic <[email protected]> Date: Thu May 19 20:46:27 2011 +0200 corrected poll error event flags --- apps/xmlrpc2di/xmlrpc++/src/XmlRpcDispatch.cpp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/xmlrpc2di/xmlrpc++/src/XmlRpcDispatch.cpp b/apps/xmlrpc2di/xmlrpc++/src/XmlRpcDispatch.cpp index 303651f..99741fa 100644 --- a/apps/xmlrpc2di/xmlrpc++/src/XmlRpcDispatch.cpp +++ b/apps/xmlrpc2di/xmlrpc++/src/XmlRpcDispatch.cpp @@ -186,7 +186,7 @@ XmlRpcDispatch::waitForAndProcessEvents(double timeout) unsigned poll_mask=0; if (it->getMask() & ReadableEvent) poll_mask |= POLLIN; if (it->getMask() & WritableEvent) poll_mask |= POLLOUT; - if (it->getMask() & Exception) poll_mask |= POLLERR; + if (it->getMask() & Exception) poll_mask |= POLLERR|POLLNVAL|POLLHUP; fds[i].events = poll_mask; fds[i].revents = 0; } @@ -228,7 +228,7 @@ XmlRpcDispatch::waitForAndProcessEvents(double timeout) newMask |= src->handleEvent(WritableEvent); ++nset; } - if (fds[i].revents & POLLERR) + if (fds[i].revents & POLLERR|POLLNVAL|POLLHUP) { newMask |= src->handleEvent(Exception); ++nset; _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
