Hey Sasha,
While fixing the console segfault issue, I noticed that the console
socket never seems to be closed.
Al
--
Albert Chu
[EMAIL PROTECTED]
925-422-5311
Computer Scientist
High Performance Systems Division
Lawrence Livermore National Laboratory
>From 207d8b9e948edfd131ce3629c007de63cae18df2 Mon Sep 17 00:00:00 2001
From: Albert Chu <[EMAIL PROTECTED]>
Date: Wed, 3 Sep 2008 10:30:56 -0700
Subject: [PATCH] close console socket on cleanup path
Signed-off-by: Albert Chu <[EMAIL PROTECTED]>
---
opensm/opensm/osm_console_io.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/opensm/opensm/osm_console_io.c b/opensm/opensm/osm_console_io.c
index 2822737..3d3ece4 100644
--- a/opensm/opensm/osm_console_io.c
+++ b/opensm/opensm/osm_console_io.c
@@ -118,6 +118,10 @@ static void osm_console_close(osm_console_t * p_oct, osm_log_t * p_log)
p_oct->client_hn, p_oct->client_ip);
cio_close(p_oct);
}
+ if (p_oct->socket > 0) {
+ close(p_oct->socket);
+ p_oct->socket = -1;
+ }
#endif
}
--
1.5.4.5
_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general
To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general