[openib-general] [PATCH] opensm: osm_console: don't poll for POLLOUT events.

Sasha Khapyorsky sashak at voltaire.com
Thu Jan 18 02:42:23 PST 2007


Then connection is accepted POLLOUT event is up most of the time (but
not handled) and osm_console() just loops without doing something.

Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---
 osm/opensm/osm_console.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/osm/opensm/osm_console.c b/osm/opensm/osm_console.c
index c6566af..af3a0f8 100644
--- a/osm/opensm/osm_console.c
+++ b/osm/opensm/osm_console.c
@@ -450,11 +450,11 @@ void osm_console(osm_opensm_t *p_osm)
 	nfds_t nfds;
 
 	pollfd[0].fd = p_osm->console.socket;
-	pollfd[0].events = POLLIN|POLLOUT;
+	pollfd[0].events = POLLIN;
 	pollfd[0].revents = 0;
 
 	pollfd[1].fd = p_osm->console.in_fd;
-	pollfd[1].events = POLLIN|POLLOUT;
+	pollfd[1].events = POLLIN;
 	pollfd[1].revents = 0;
 
 	fds = p_osm->console.socket < 0 ? &pollfd[1] : pollfd;
-- 
1.5.0.rc0.g2484-dirty





More information about the general mailing list