Mamatha Inamdar
2015-08-13 06:22:12 UTC
In the new version of ipmitool 1.8.15, sol deactivate command was not closing the session,
This patch is to fix close console session When we issue sol deactivate command.
Signed-off-by: Mamatha Inamdar <***@linux.vnet.ibm.com>
---
lib/ipmi_sol.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/ipmi_sol.c b/lib/ipmi_sol.c
index cf58b44..b497f46 100644
--- a/lib/ipmi_sol.c
+++ b/lib/ipmi_sol.c
@@ -1648,6 +1648,9 @@ ipmi_sol_red_pill(struct ipmi_intf * intf, int instance)
{
output(rs);
}
+ else
+ bShouldExit = bBmcClosedSession = 1;
+
/*
* Should recv_sol come back null, the incoming packet was not ours.
* Just fall through, the keepalive logic will determine if
------------------------------------------------------------------------------
This patch is to fix close console session When we issue sol deactivate command.
Signed-off-by: Mamatha Inamdar <***@linux.vnet.ibm.com>
---
lib/ipmi_sol.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/ipmi_sol.c b/lib/ipmi_sol.c
index cf58b44..b497f46 100644
--- a/lib/ipmi_sol.c
+++ b/lib/ipmi_sol.c
@@ -1648,6 +1648,9 @@ ipmi_sol_red_pill(struct ipmi_intf * intf, int instance)
{
output(rs);
}
+ else
+ bShouldExit = bBmcClosedSession = 1;
+
/*
* Should recv_sol come back null, the incoming packet was not ours.
* Just fall through, the keepalive logic will determine if
------------------------------------------------------------------------------